@jaspero/ng-helpers
Version:
[](https://github.com/semantic-release/semantic-release) [](https://circleci.
26 lines • 1.55 kB
TypeScript
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