UNPKG

ng-click-outside2

Version:

Angular directive for handling click events outside an element.

25 lines (24 loc) 1.38 kB
import { OnDestroy } from '@angular/core'; import { NgClickOutsideDirective } from "./ng-click-outside.directive"; import * as i0 from "@angular/core"; /** * Directive only starts after a single click and the outside click event handler * will then be removed after a click outside has occurred. */ export declare class NgClickOutsideAttachOutsideDirective extends NgClickOutsideDirective implements OnDestroy { /** * By default, the outside click event handler is automatically attached. * * Explicitely setting this to `true`sets the handler after the element is clicked. The outside click event handler * will then be removed after a click outside has occurred. */ attachOutsideOnClick: import("@angular/core").InputSignalWithTransform<boolean, unknown>; constructor(); ngOnDestroy(): void; protected _init(): void; protected _emit(ev: Event): void; protected _initAttachOutsideOnClickListener(): void; protected _removeAttachOutsideOnClickListener(): void; static ɵfac: i0.ɵɵFactoryDeclaration<NgClickOutsideAttachOutsideDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<NgClickOutsideAttachOutsideDirective, "[clickOutside][attachOutsideOnClick]", never, { "attachOutsideOnClick": { "alias": "attachOutsideOnClick"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>; }