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) [![Build Status](https://travis-ci.org/primefaces/primeng.

36 lines (35 loc) 1.08 kB
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; ariaLabelledBy: 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 { }