UNPKG

turbogui-angular

Version:

A library that tries to help with the most common user interface elements on several frameworks and platforms

27 lines 1.55 kB
/** * TurboGUI is A library that helps with the most common and generic UI elements and functionalities * * Website : -> http://www.turbogui.org * License : -> Licensed under the Apache License, Version 2.0. You may not use this file except in compliance with the License. * License Url : -> http://www.apache.org/licenses/LICENSE-2.0 * CopyRight : -> Copyright 2018 Edertone Advanded Solutions. https://www.edertone.com */ import { ElementRef, EventEmitter } from '@angular/core'; import * as i0 from "@angular/core"; /** * It is necessary to import TurboGuiAngularModule at the component that uses this directive * * This directive is used to execute an action when the user clicks outside of an element. * * If we set the elementClickOutside tag to the html element and set the clickOutsideElement event to a function: <element elementClickOutside (clickOutsideElement)="clickOutsideElement()" ..., * this function will be executed when the user clicks outside of the element. */ export declare class ElementClickOutsideDirective { private readonly elementRef; clickOutsideElement: EventEmitter<void>; constructor(elementRef: ElementRef); onClick(targetElement: HTMLElement): void; static ɵfac: i0.ɵɵFactoryDeclaration<ElementClickOutsideDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<ElementClickOutsideDirective, "[elementClickOutside]", never, {}, { "clickOutsideElement": "clickOutsideElement"; }, never, never, false, never>; } //# sourceMappingURL=ElementClickOutsideDirective.d.ts.map