UNPKG

primeng

Version:

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![npm version](https://badge.fury.io/js/primeng.svg)](https://badge.fury.io/js/primeng) [![npm downloads](https://img.shields.io/npm/dm/primeng.sv

33 lines (32 loc) 985 B
import { EventEmitter, ChangeDetectorRef } from '@angular/core'; import { ControlValueAccessor } from '@angular/forms'; export declare const TOGGLEBUTTON_VALUE_ACCESSOR: any; export declare class ToggleButton implements ControlValueAccessor { cd: ChangeDetectorRef; onLabel: string; offLabel: string; onIcon: string; offIcon: string; ariaLabelledBy: string; disabled: boolean; style: any; styleClass: string; inputId: string; tabindex: number; iconPos: string; onChange: EventEmitter<any>; checked: boolean; onModelChange: Function; onModelTouched: Function; constructor(cd: ChangeDetectorRef); toggle(event: Event): void; onBlur(): void; writeValue(value: any): void; registerOnChange(fn: Function): void; registerOnTouched(fn: Function): void; setDisabledState(val: boolean): void; get hasOnLabel(): boolean; get hasOffLabel(): boolean; } export declare class ToggleButtonModule { }