UNPKG

ng2-events

Version:

Supercharge your Angular2+ event handling

17 lines (16 loc) 631 B
import { MyEventManagerPlugin } from "../__util/event-manager-plugin"; import * as i0 from "@angular/core"; /** * Listen to events that are fired outside of the current element and its children * * Usage: * <div (outside.click)="close()"></div> * */ export declare class OutsideEventPlugin extends MyEventManagerPlugin { constructor(doc: any); supports(eventName: string): boolean; addEventListener(element: HTMLElement, eventName: string, handler: Function): Function; static ɵfac: i0.ɵɵFactoryDeclaration<OutsideEventPlugin, never>; static ɵprov: i0.ɵɵInjectableDeclaration<OutsideEventPlugin>; }