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
VModels
Name
vModel
boolean = undefinedProps
Name
autofocus
boolean = undefinedclearable
boolean = undefinedclearToNull
boolean = undefinedcolor
Orion.Color = 'default' disabled
boolean = undefineddonetyping
number = undefinedforceLabelFloating
boolean = undefinedinheritValidationState
boolean = undefinedinline
boolean = undefinedlabel
string = undefinedplaceholder
string = undefinedprefixFontIcon
string = undefinedprefixIcon
Orion.Icon = undefinedreadonly
boolean = undefinedrequired
boolean = undefinedreverse
boolean = undefinedselectOnFocus
boolean = undefinedsize
Orion.Size = 'md' suffixFontIcon
string = undefinedsuffixIcon
Orion.Icon = undefinedtype
string = 'toggle'validation
string | ((val: any) => boolean) | Orion.Validator.Rule | Orion.Validation.Rule | boolean = undefinedvalidationErrorMessage
string = undefinedvalue
boolean = undefinedEvents
Name
Payload type
focus
FocusEventblur
FocusEventinput
Tchange
Tclear
Slots
Name
Bindings
default
No bindingsPublicInstance
Name
Type
hasBeenFocus
() => booleanisFocus
() => booleanfocus
() => voidblur
Lodash.debounceclear
() => voidsetHasBeenFocus
(value: boolean) => voidisValid
() => boolean_input
() => HTMLInputElement | undefinedsharedState
() => {
hasBeenFocus: boolean;
isFocus: boolean;
isAutoFilled: boolean;
}