UNPKG

@angular/flex-layout

Version:
41 lines 1.54 kB
var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; import { Directive, ElementRef, Renderer } from '@angular/core'; import { MediaMonitor } from '../../media-query/media-monitor'; import { BaseFxDirective } from './base'; var FLEX_FILL_CSS = { 'margin': 0, 'width': '100%', 'height': '100%', 'min-width': '100%', 'min-height': '100%' }; /** * 'fxFill' flexbox styling directive * Maximizes width and height of element in a layout container * * NOTE: fxFill is NOT responsive API!! */ export var FlexFillDirective = (function (_super) { __extends(FlexFillDirective, _super); function FlexFillDirective(monitor, elRef, renderer) { _super.call(this, monitor, elRef, renderer); this.elRef = elRef; this.renderer = renderer; this._applyStyleToElement(FLEX_FILL_CSS); } FlexFillDirective.decorators = [ { type: Directive, args: [{ selector: "\n [fxFill],\n [fxFlexFill]\n" },] }, ]; /** @nocollapse */ FlexFillDirective.ctorParameters = function () { return [ { type: MediaMonitor, }, { type: ElementRef, }, { type: Renderer, }, ]; }; return FlexFillDirective; }(BaseFxDirective)); //# sourceMappingURL=/usr/local/google/home/tinagao/WebstormProjects/caretaker/flex-layout/src/lib/flexbox/api/flex-fill.js.map