The Switch is a UI component that can be in two states: "On" and "Off".
import DxSwitch from "devextreme-vue/switch"
An object defining configuration properties for the Switch UI component.
Name Description accessKeySpecifies the shortcut key that sets focus on the UI component.
activeStateEnabledSpecifies whether the UI component changes its visual state as a result of user interaction.
disabledSpecifies whether the UI component responds to user interaction.
elementAttrSpecifies the global attributes to be attached to the UI component's container element.
focusStateEnabledSpecifies whether the UI component can be focused using keyboard navigation.
heightSpecifies the UI component's height.
hintSpecifies text for a hint that appears when a user pauses on the UI component.
hoverStateEnabledSpecifies whether the UI component changes its state when a user pauses on it.
isDirtySpecifies whether the component's current value differs from the initial value.
isValidSpecifies or indicates whether the editor's value is valid.
nameThe value to be assigned to the name
attribute of the underlying HTML element.
A function that is executed when the UI component is rendered and each time the component is repainted.
onDisposingA function that is executed before the UI component is disposed of.
onInitializedA function used in JavaScript frameworks to save the UI component instance.
onOptionChangedA function that is executed after a UI component property is changed.
onValueChangedA function that is executed after the UI component's value is changed.
readOnlySpecifies whether the editor is read-only.
rtlEnabledSwitches the UI component to a right-to-left representation.
switchedOffTextSpecifies the text displayed when the UI component is switched off.
switchedOnTextSpecifies the text displayed when the UI component is switched on.
tabIndexSpecifies the number of the element when the Tab key is used for navigating.
validationErrorInformation on the broken validation rule. Contains the first item from the validationErrors array.
validationErrorsAn array of validation errors.
validationMessageModeSpecifies how the message about the validation rules that are not satisfied by this editor's value is displayed.
validationMessagePositionSpecifies the position of a validation message relative to the component. The validation message describes the validation rules that this component's value does not satisfy.
validationStatusIndicates or specifies the current validation status.
valueA Boolean value specifying whether the current switch state is "On" or "Off".
visibleSpecifies whether the UI component is visible.
widthSpecifies the UI component's width.
This section describes events fired by this UI component.
Feel free to share topic-related thoughts here.RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4