UNPKG

@anypoint-web-components/anypoint-control-mixins

Version:

A set of mixins to be implemented in various controls reacting to user input

30 lines (27 loc) 856 B
declare function ControlStateMixin<T extends new (...args: any[]) => {}>(base: T): T & ControlStateMixinConstructor; interface ControlStateMixinConstructor { new(...args: any[]): ControlStateMixin; } /** * @fires focusedchange When the `focused` property has changed * @fires disabledchange When the `disabled` property has changed */ interface ControlStateMixin { /** * If true the button is a toggle and is currently in the active state. * @attribute */ disabled: boolean; /** * If true the element currently has focus. * @attribute */ focused: boolean; _focusBlurHandler(e: FocusEvent): void; _disabledChanged(disabled: boolean): void; _changedControlState(): void; _notifyFocus(value: boolean): void; _notifyDisabled(value: boolean): void; } export {ControlStateMixinConstructor}; export {ControlStateMixin};