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) 1.06 kB
import { EventEmitter, ChangeDetectorRef } from '@angular/core'; import { ControlValueAccessor } from '@angular/forms'; export declare const INPUTSWITCH_VALUE_ACCESSOR: any; export declare class InputSwitch implements ControlValueAccessor { private cd; style: any; styleClass: string; tabindex: number; inputId: string; name: string; disabled: boolean; readonly: boolean; ariaLabelledBy: string; onChange: EventEmitter<any>; checked: boolean; focused: boolean; onModelChange: Function; onModelTouched: Function; constructor(cd: ChangeDetectorRef); onClick(event: Event, cb: HTMLInputElement): void; onInputChange(event: Event): void; toggle(event: Event): void; updateModel(event: Event, value: boolean): void; onFocus(event: Event): void; onBlur(event: Event): void; writeValue(checked: any): void; registerOnChange(fn: Function): void; registerOnTouched(fn: Function): void; setDisabledState(val: boolean): void; } export declare class InputSwitchModule { }