UNPKG

ng-zorro-antd-mobile

Version:

An enterprise-class mobile UI components based on Ant Design and Angular

35 lines (34 loc) 1.44 kB
import { EventEmitter } from '@angular/core'; import * as i0 from "@angular/core"; export declare class SwitchComponent { prefixCls: string; wrapCls: string; checkboxCls: { 'checkbox-disabled': boolean; 'checkbox-active': boolean; 'checkbox-inactive': boolean; }; colorStyle: {}; switchChecked: boolean; private _color; private _disabled; private onChanged; private onTouched; set color(value: any); name: string; set platform(value: string); set checked(value: boolean); get disabled(): boolean; set disabled(value: boolean); onChange: EventEmitter<boolean>; onClick: EventEmitter<boolean>; dispaly: boolean; constructor(); changeSwitch(checkedValue: any): void; click(): void; writeValue(value: boolean): void; registerOnChange(fn: (_: boolean) => {}): void; registerOnTouched(fn: () => {}): void; static ɵfac: i0.ɵɵFactoryDeclaration<SwitchComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<SwitchComponent, "Switch, nzm-switch", never, { "color": { "alias": "color"; "required": false; }; "name": { "alias": "name"; "required": false; }; "platform": { "alias": "platform"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "onChange": "onChange"; "onClick": "onClick"; }, never, never, false, never>; }