OrionCheckbox
<o-checkbox>
affiche une case à cocher qui peut être utilisée pour sélectionner plusieurs choix, ou être utilisée comme une alternative au composant <o-toggle>
.
Usage
CheckboxStyle CheckboxValue CheckboxPlayground
Props
Name
autofocus
boolean = false
clearable
boolean = false
clearToNull
boolean = false
color
Orion.Color = 'default'
disabled
boolean = false
donetyping
number = 0
forceLabelFloating
boolean = false
iconCheck
Orion.Icon = undefined
inheritValidationState
boolean = undefined
inline
boolean = false
inputValue
string | boolean | number | Object | any[] | Date | undefined = undefined
label
string = undefined
modelValue
T = undefined
multiple
boolean = false
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 = 'checkbox'
validation
string | ((val: any) => boolean) | Orion.Validator.Rule | Orion.Validation.Rule | boolean = undefined
validationErrorMessage
string = undefined
Events
Name
Payload type
focus
FocusEvent
blur
FocusEvent
input
VModelType
change
VModelType
update:modelValue
VModelType
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