ng-click-outside2
Version:
Angular directive for handling click events outside an element.
23 lines (22 loc) • 1.06 kB
TypeScript
import * as i0 from "@angular/core";
/**
* Optimization for Treeshaking: https://angular.io/guide/lightweight-injection-tokens
*/
export declare abstract class NgClickOutsideExcludeToken {
abstract isExclude(target: any): boolean;
}
/**
* Directive to exclude elements from the click-outside
*/
export declare class NgClickOutsideExcludeDirective extends NgClickOutsideExcludeToken {
/**
* A comma-separated string of DOM element queries to exclude when clicking outside of the element.
* For example: `[exclude]="'button,.btn-primary'"`.
*/
clickOutsideExclude: import("@angular/core").InputSignal<string>;
private document;
excludeCheck(): HTMLElement[];
isExclude(target: any): boolean;
static ɵfac: i0.ɵɵFactoryDeclaration<NgClickOutsideExcludeDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<NgClickOutsideExcludeDirective, "[clickOutsideExclude]", never, { "clickOutsideExclude": { "alias": "clickOutsideExclude"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
}