UNPKG

@js-sugar/angular

Version:

JS-Sugar core package (Angular)

28 lines (27 loc) 1.3 kB
import { TemplateRef, ViewContainerRef, OnDestroy, EventEmitter, OnInit, ElementRef } from '@angular/core'; import { Overlay } from '@angular/cdk/overlay'; import { OverlayPosition } from './types'; import * as i0 from "@angular/core"; export declare class OverlayDirective implements OnInit, OnDestroy { private _overlayService; private _viewRef; private _elementRef; hasBackdrop: boolean; overlay: TemplateRef<any>; positions: OverlayPosition[]; showChange: EventEmitter<boolean>; backdropClick: EventEmitter<MouseEvent>; set show(value: boolean); get show(): boolean; private _overlayRef?; private _show; private _backdropClickSubscription?; constructor(_overlayService: Overlay, _viewRef: ViewContainerRef, _elementRef: ElementRef); ngOnInit(): void; toggle(): void; private _createOverlay; private _dispose; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration<OverlayDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<OverlayDirective, "[jssOverlay]", ["jssOverlay"], { "hasBackdrop": "hasBackdrop"; "overlay": "jssOverlay"; "positions": "positions"; "show": "show"; }, { "showChange": "showChange"; "backdropClick": "backdropClick"; }, never, never, false>; }