UNPKG

@ks89/angular-modal-gallery

Version:
37 lines (36 loc) 1.54 kB
import { ElementRef, OnChanges, OnInit, Renderer2 } from '@angular/core'; import * as i0 from "@angular/core"; /** * Directive to change the flex-wrap css property of an element. */ export declare class WrapDirective implements OnInit, OnChanges { private renderer; private el; /** * Boolean input that it's true to add 'flex-wrap: wrap', 'flex-wrap: nowrap' otherwise. */ wrap: boolean | undefined; /** * String input to force the width of the element to be able to see wrapping. */ width: string | undefined; constructor(renderer: Renderer2, el: ElementRef); /** * Method ´ngOnInit´ to apply the style of this directive. * This is an angular lifecycle hook, so its called automatically by Angular itself. * In particular, it's called only one time!!! */ ngOnInit(): void; /** * Method ´ngOnChanges´ to apply the style of this directive. * This is an angular lifecycle hook, so its called automatically by Angular itself. * In particular, it's called when any data-bound property of a directive changes!!! */ ngOnChanges(): void; /** * Private method to change both width and flex-wrap css properties. */ private applyStyle; static ɵfac: i0.ɵɵFactoryDeclaration<WrapDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<WrapDirective, "[ksWrap]", never, { "wrap": { "alias": "wrap"; "required": false; }; "width": { "alias": "width"; "required": false; }; }, {}, never, never, false, never>; }