UNPKG

ngx-bootstrap

Version:
1 lines 1.28 kB
{"version":3,"file":"button-checkbox.directive.d.ts","sources":["button-checkbox.directive.d.ts"],"names":[],"mappings":"AAAA;AACA;;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AACA","sourcesContent":["import { OnInit, Provider } from '@angular/core';\nimport { ControlValueAccessor } from '@angular/forms';\nexport declare const CHECKBOX_CONTROL_VALUE_ACCESSOR: Provider;\n/**\n * Add checkbox functionality to any element\n */\nexport declare class ButtonCheckboxDirective implements ControlValueAccessor, OnInit {\n /** Truthy value, will be set to ngModel */\n btnCheckboxTrue: boolean;\n /** Falsy value, will be set to ngModel */\n btnCheckboxFalse: boolean;\n state: boolean;\n protected value?: boolean | string;\n protected isDisabled: boolean;\n protected onChange: Function;\n protected onTouched: Function;\n onClick(): void;\n ngOnInit(): void;\n protected get trueValue(): boolean;\n protected get falseValue(): boolean;\n toggle(state: boolean): void;\n writeValue(value: boolean | string | null): void;\n setDisabledState(isDisabled: boolean): void;\n registerOnChange(fn: () => void): void;\n registerOnTouched(fn: () => void): void;\n}\n"]}