UNPKG

ngx-bootstrap

Version:
31 lines (30 loc) 1.35 kB
import { OnInit, Provider } from '@angular/core'; import { ControlValueAccessor } from '@angular/forms'; import * as ɵngcc0 from '@angular/core'; export declare const CHECKBOX_CONTROL_VALUE_ACCESSOR: Provider; /** * Add checkbox functionality to any element */ export declare class ButtonCheckboxDirective implements ControlValueAccessor, OnInit { /** Truthy value, will be set to ngModel */ btnCheckboxTrue: boolean; /** Falsy value, will be set to ngModel */ btnCheckboxFalse: boolean; state: boolean; protected value?: boolean | string; protected isDisabled: boolean; protected onChange: Function; protected onTouched: Function; onClick(): void; ngOnInit(): void; protected get trueValue(): boolean; protected get falseValue(): boolean; toggle(state: boolean): void; writeValue(value: boolean | string | null): void; setDisabledState(isDisabled: boolean): void; registerOnChange(fn: () => void): void; registerOnTouched(fn: () => void): void; static ɵfac: ɵngcc0.ɵɵFactoryDef<ButtonCheckboxDirective, never>; static ɵdir: ɵngcc0.ɵɵDirectiveDefWithMeta<ButtonCheckboxDirective, "[btnCheckbox]", never, { "btnCheckboxTrue": "btnCheckboxTrue"; "btnCheckboxFalse": "btnCheckboxFalse"; }, {}, never>; } //# sourceMappingURL=button-checkbox.directive.d.ts.map