@jaspero/ng-helpers
Version:
[](https://github.com/semantic-release/semantic-release) [](https://circleci.
32 lines • 1.32 kB
TypeScript
import { AfterViewInit, ElementRef, EventEmitter, NgZone, OnDestroy } from '@angular/core';
import { Subscription } from 'rxjs';
import * as i0 from "@angular/core";
/**
* Emits an event when a click action occurs that does not target the element
*
* @example
* <div (jpClickOutside)="doSomething()"></div>
*/
export declare class ClickOutsideDirective implements AfterViewInit, OnDestroy {
private _el;
private _ngZone;
constructor(_el: ElementRef, _ngZone: NgZone);
/**
* Any valid html event
*/
clickOutsideEventType: string;
/**
* if true jpClickOutside doesn't emit
*/
clickOutsideBlock: boolean;
/**
* Emits when triggered event doesn't contain this e
*/
jpClickOutside: EventEmitter<MouseEvent>;
subscription: Subscription;
ngAfterViewInit(): void;
ngOnDestroy(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<ClickOutsideDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<ClickOutsideDirective, "[jpClickOutside]", never, { "clickOutsideEventType": { "alias": "clickOutsideEventType"; "required": false; }; "clickOutsideBlock": { "alias": "clickOutsideBlock"; "required": false; }; }, { "jpClickOutside": "jpClickOutside"; }, never, never, false, never>;
}
//# sourceMappingURL=click-outside.directive.d.ts.map