UNPKG

angular-bootstrap-md

Version:

Bootstrap 4 & Angular 15 UI KIT - 700+ components, MIT license, simple installation.

30 lines (29 loc) 1.24 kB
import { OnInit } from '@angular/core'; import { ControlValueAccessor } from '@angular/forms'; import * as i0 from "@angular/core"; export declare const CHECKBOX_CONTROL_VALUE_ACCESSOR: any; /** * Add checkbox functionality to any element */ export declare class ButtonCheckboxDirective implements ControlValueAccessor, OnInit { /** Truthy value, will be set to ngModel */ btnCheckboxTrue: any; /** Falsy value, will be set to ngModel */ btnCheckboxFalse: any; state: boolean; protected value: any; protected isDisabled: boolean; protected onChange: any; protected onTouched: any; onClick(): void; ngOnInit(): any; protected get trueValue(): boolean; protected get falseValue(): boolean; toggle(state: boolean): void; writeValue(value: any): void; setDisabledState(isDisabled: boolean): void; registerOnChange(fn: (_: any) => {}): void; registerOnTouched(fn: () => {}): void; static ɵfac: i0.ɵɵFactoryDeclaration<ButtonCheckboxDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<ButtonCheckboxDirective, "[mdbCheckbox]", never, { "btnCheckboxTrue": "btnCheckboxTrue"; "btnCheckboxFalse": "btnCheckboxFalse"; }, {}, never, never, false, never>; }