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

40 lines (39 loc) 1.8 kB
import { EventEmitter, ChangeDetectorRef } from '@angular/core'; import { ControlValueAccessor } from '@angular/forms'; import * as i0 from "@angular/core"; import * as i1 from "@angular/common"; 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; static ɵfac: i0.ɵɵFactoryDeclaration<InputSwitch, never>; static ɵcmp: i0.ɵɵComponentDeclaration<InputSwitch, "p-inputSwitch", never, { "style": "style"; "styleClass": "styleClass"; "tabindex": "tabindex"; "inputId": "inputId"; "name": "name"; "disabled": "disabled"; "readonly": "readonly"; "ariaLabelledBy": "ariaLabelledBy"; }, { "onChange": "onChange"; }, never, never>; } export declare class InputSwitchModule { static ɵfac: i0.ɵɵFactoryDeclaration<InputSwitchModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<InputSwitchModule, [typeof InputSwitch], [typeof i1.CommonModule], [typeof InputSwitch]>; static ɵinj: i0.ɵɵInjectorDeclaration<InputSwitchModule>; }