element/types/switch.d.ts

44 lines
1.0 KiB
TypeScript
Raw Permalink Normal View History

import { ElementUIComponent } from './component'
/** Switch Component */
export declare class ElSwitch extends ElementUIComponent {
/** Whether Switch is on */
value: boolean
/** Whether Switch is disabled */
disabled: boolean
/** Width of Switch */
width: number
/** Class name of the icon displayed when in on state, overrides on-text */
2017-10-19 07:54:01 +00:00
activeIconClass: string
/** Class name of the icon displayed when in off state, overrides off-text */
2017-10-19 07:54:01 +00:00
inactiveIconClass: string
/** Text displayed when in on state */
2017-10-19 07:54:01 +00:00
activeText: string
/** Text displayed when in off state */
2017-10-19 07:54:01 +00:00
inactiveText: string
/** Background color when in on state */
2017-10-19 07:54:01 +00:00
activeColor: string
/** Background color when in off state */
2017-10-19 07:54:01 +00:00
inactiveColor: string
2017-10-18 10:31:03 +00:00
/** Switch value when in on state */
2017-10-19 07:54:01 +00:00
activeValue: string | boolean | number
2017-10-18 10:31:03 +00:00
/** Switch value when in off state */
2017-10-19 07:54:01 +00:00
inactiveValue: string | boolean | number
/** Input name of Switch */
name: string
/** Whether to trigger form validation */
validateEvent: boolean
}