1 | import { EventEmitter, ChangeDetectorRef } from '@angular/core';
|
---|
2 | import { ControlValueAccessor } from '@angular/forms';
|
---|
3 | import * as i0 from "@angular/core";
|
---|
4 | import * as i1 from "@angular/common";
|
---|
5 | import * as i2 from "primeng/ripple";
|
---|
6 | export declare const TOGGLEBUTTON_VALUE_ACCESSOR: any;
|
---|
7 | export declare class ToggleButton implements ControlValueAccessor {
|
---|
8 | cd: ChangeDetectorRef;
|
---|
9 | onLabel: string;
|
---|
10 | offLabel: string;
|
---|
11 | onIcon: string;
|
---|
12 | offIcon: string;
|
---|
13 | ariaLabelledBy: string;
|
---|
14 | disabled: boolean;
|
---|
15 | style: any;
|
---|
16 | styleClass: string;
|
---|
17 | inputId: string;
|
---|
18 | tabindex: number;
|
---|
19 | iconPos: string;
|
---|
20 | onChange: EventEmitter<any>;
|
---|
21 | checked: boolean;
|
---|
22 | onModelChange: Function;
|
---|
23 | onModelTouched: Function;
|
---|
24 | constructor(cd: ChangeDetectorRef);
|
---|
25 | toggle(event: Event): void;
|
---|
26 | onBlur(): void;
|
---|
27 | writeValue(value: any): void;
|
---|
28 | registerOnChange(fn: Function): void;
|
---|
29 | registerOnTouched(fn: Function): void;
|
---|
30 | setDisabledState(val: boolean): void;
|
---|
31 | get hasOnLabel(): boolean;
|
---|
32 | get hasOffLabel(): boolean;
|
---|
33 | static ɵfac: i0.ɵɵFactoryDeclaration<ToggleButton, never>;
|
---|
34 | static ɵcmp: i0.ɵɵComponentDeclaration<ToggleButton, "p-toggleButton", never, { "onLabel": "onLabel"; "offLabel": "offLabel"; "onIcon": "onIcon"; "offIcon": "offIcon"; "ariaLabelledBy": "ariaLabelledBy"; "disabled": "disabled"; "style": "style"; "styleClass": "styleClass"; "inputId": "inputId"; "tabindex": "tabindex"; "iconPos": "iconPos"; }, { "onChange": "onChange"; }, never, never>;
|
---|
35 | }
|
---|
36 | export declare class ToggleButtonModule {
|
---|
37 | static ɵfac: i0.ɵɵFactoryDeclaration<ToggleButtonModule, never>;
|
---|
38 | static ɵmod: i0.ɵɵNgModuleDeclaration<ToggleButtonModule, [typeof ToggleButton], [typeof i1.CommonModule, typeof i2.RippleModule], [typeof ToggleButton]>;
|
---|
39 | static ɵinj: i0.ɵɵInjectorDeclaration<ToggleButtonModule>;
|
---|
40 | }
|
---|