OrionToggle
<o-toggle>
affiche un bouton switch qui peut être utilisé pour avec des valeurs booléennes.
Par exemple, d'un point de vue UX, son utilisation est recommandée pour l'activation ou la désactivation de paramètres ou de fonctionnalités.
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