primeng
Version:
[](https://opensource.org/licenses/MIT) [](https://gitter.im/primefaces/primeng?ut
35 lines (34 loc) • 1.06 kB
TypeScript
import { EventEmitter, AfterViewInit, ElementRef } from '@angular/core';
import { ControlValueAccessor } from '@angular/forms';
export declare const TOGGLEBUTTON_VALUE_ACCESSOR: any;
export declare class ToggleButton implements ControlValueAccessor, AfterViewInit {
onLabel: string;
offLabel: string;
onIcon: string;
offIcon: string;
disabled: boolean;
style: any;
styleClass: string;
inputId: string;
tabindex: number;
iconPos: string;
onChange: EventEmitter<any>;
checkboxViewChild: ElementRef;
checkbox: HTMLInputElement;
checked: boolean;
focus: boolean;
onModelChange: Function;
onModelTouched: Function;
ngAfterViewInit(): void;
toggle(event: Event): void;
onFocus(): void;
onBlur(): void;
writeValue(value: any): void;
registerOnChange(fn: Function): void;
registerOnTouched(fn: Function): void;
setDisabledState(val: boolean): void;
readonly hasOnLabel: boolean;
readonly hasOffLabel: boolean;
}
export declare class ToggleButtonModule {
}