1 | import { OnInit, Provider } from '@angular/core';
|
2 | import { ControlValueAccessor } from '@angular/forms';
|
3 | import * as i0 from "@angular/core";
|
4 | export declare const CHECKBOX_CONTROL_VALUE_ACCESSOR: Provider;
|
5 | declare type AvailableValues = boolean | string | number;
|
6 |
|
7 |
|
8 |
|
9 | export declare class ButtonCheckboxDirective implements ControlValueAccessor, OnInit {
|
10 |
|
11 | btnCheckboxTrue: AvailableValues;
|
12 |
|
13 | btnCheckboxFalse: AvailableValues;
|
14 | state: boolean;
|
15 | protected value?: AvailableValues;
|
16 | protected isDisabled: boolean;
|
17 | protected onChange: Function;
|
18 | protected onTouched: Function;
|
19 | onClick(): void;
|
20 | ngOnInit(): void;
|
21 | protected get trueValue(): AvailableValues;
|
22 | protected get falseValue(): AvailableValues;
|
23 | toggle(state: boolean): void;
|
24 | writeValue(value: boolean | string | null): void;
|
25 | setDisabledState(isDisabled: boolean): void;
|
26 | registerOnChange(fn: () => void): void;
|
27 | registerOnTouched(fn: () => void): void;
|
28 | static ɵfac: i0.ɵɵFactoryDeclaration<ButtonCheckboxDirective, never>;
|
29 | static ɵdir: i0.ɵɵDirectiveDeclaration<ButtonCheckboxDirective, "[btnCheckbox]", never, { "btnCheckboxTrue": "btnCheckboxTrue"; "btnCheckboxFalse": "btnCheckboxFalse"; }, {}, never, never, false>;
|
30 | }
|
31 | export {};
|