OrionToggle
<o-toggle>
displays a toggle, which can be used to work with boolean values.
For example, on the UX side, its use is recommanded to activate or deactivate settings or features.
Usage
ToggleColor TogglePlayground
Props
Name
autofocus
boolean = false
clearable
boolean = false
clearToNull
boolean = false
color
Orion.Color = 'default'
disabled
boolean = false
donetyping
number = 0
forceLabelFloating
boolean = false
inheritValidationState
boolean = undefined
inline
boolean = false
label
string = undefined
modelValue
T = undefined
prefixFontIcon
string = undefined
prefixIcon
Orion.Icon = undefined
readonly
boolean = false
required
boolean = false
reverse
boolean = false
selectOnFocus
boolean = false
size
Orion.Size = 'md'
suffixFontIcon
string = undefined
suffixIcon
Orion.Icon = undefined
type
string = 'toggle'
validation
string | ((val: any) => boolean) | Orion.Validator.Rule | Orion.Validation.Rule | boolean = undefined
validationErrorMessage
string = undefined
value
boolean = false
Events
Name
Payload type
focus
FocusEvent
blur
FocusEvent
input
boolean
change
boolean
update:modelValue
boolean
clear
No payload
Slots
Name
Bindings
default
No bindings
PublicInstance
Name
Type
hasBeenFocus
() => boolean
isFocus
() => boolean
focus
() => void
blur
Lodash.debounce
clear
() => void
setHasBeenFocus
(value: boolean) => void
isValid
() => boolean
_input
() => HTMLInputElement | undefined