UNPKG

@aurelia-mdc-web/switch

Version:

Wrapper for Material Components Web Switch

25 lines (24 loc) 873 B
import { MdcComponent } from '@aurelia-mdc-web/base'; import { MDCSwitchState, MDCSwitchRenderAdapter, MDCSwitchRenderFoundation } from '@material/switch'; import { MDCRippleCapableSurface } from '@material/ripple'; export declare class MdcSwitch extends MdcComponent<MDCSwitchRenderFoundation> implements MDCSwitchState, MDCRippleCapableSurface { root: IMdcSwitchElement; constructor(root: IMdcSwitchElement); disabled: boolean; selected: boolean; processing: boolean; initialSyncWithDOM(): void; getDefaultFoundation(): MDCSwitchRenderFoundation; protected createAdapter(): MDCSwitchRenderAdapter; handleClick(): void; } /** @hidden */ export interface IMdcSwitchElement extends HTMLButtonElement { checked: boolean; indeterminate: boolean; au: { controller: { viewModel: MdcSwitch; }; }; }