File

src/lib/directives/sz-element-resize-observer.directive.ts

Description

Directive to listening to resize events on individual elements. Utilizes the ResizeObserver[https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver] api

Example :

Implements

AfterViewInit OnChanges OnDestroy

Metadata

Constructor

constructor(elementRef: ElementRef, elementResizeService: SzElementResizeService)
Parameters :
Name Type Optional
elementRef ElementRef No
elementResizeService SzElementResizeService No

Outputs

onResize
Type : EventEmitter

event emitter for resize event

results matching ""

    No results matching ""