UNPKG

@jaspero/ng-helpers

Version:

[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) [![CircleCI](https://circleci.com/gh/Jaspero/ng-helpers.svg?style=svg)](https://circleci.

26 lines 1.55 kB
import { ElementRef, OnDestroy, OnInit, Renderer2 } from '@angular/core'; import { Observable, Subscription } from 'rxjs'; import * as i0 from "@angular/core"; /** * Directive will add loading class to the host element on click event * Usage: [jpLoadClick]="save()" * Function save() should return observable */ export declare class LoadClickDirective implements OnInit, OnDestroy { private _el; private _renderer; private _defaultLoadClickClass; constructor(_el: ElementRef, _renderer: Renderer2, _defaultLoadClickClass: string); jpLoadClick: () => Observable<any>; loadClickEventType: string; loadClickStopPropagation: boolean; loadClickPreventDefault: boolean; loadClickClass: string; disableAttribute: boolean; subscription: Subscription; ngOnInit(): void; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration<LoadClickDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<LoadClickDirective, "[jpLoadClick]", never, { "jpLoadClick": { "alias": "jpLoadClick"; "required": false; }; "loadClickEventType": { "alias": "loadClickEventType"; "required": false; }; "loadClickStopPropagation": { "alias": "loadClickStopPropagation"; "required": false; }; "loadClickPreventDefault": { "alias": "loadClickPreventDefault"; "required": false; }; "loadClickClass": { "alias": "loadClickClass"; "required": false; }; "disableAttribute": { "alias": "disableAttribute"; "required": false; }; }, {}, never, never, false, never>; } //# sourceMappingURL=load-click.directive.d.ts.map