OrionDatepicker
Usage
<o-datepicker>
affiche un sélecteur de date, de période ou de semaine selon la configuration choisie, comme dans la démo ci-dessous.
L'heure peut également être affichée et définie. Jetez un oeil au playground.
DatepickerType DatepickerDate DatepickerDisplay DatepickerPlayground
Props
Name
autofocus
boolean = false
clearable
boolean = false
clearToNull
boolean = false
disabled
boolean = false
disablePopover
boolean = false
displayWeekNumber
boolean = false
donetyping
number = 0
forceLabelFloating
boolean = false
hideDisabled
boolean = false
inheritValidationState
boolean = undefined
label
string = undefined
maxDate
Undef<Date> = undefined
minDate
Undef<Date> = undefined
modelValue
T = undefined
multiple
Date[] = () => []
multipleLabelColor
Orion.ColorExtendedAndGreys = 'default'
prefixFontIcon
string = undefined
prefixIcon
Orion.Icon = undefined
preserveTime
boolean = false
range
Undef<Orion.DateRange> = undefined
readonly
boolean = false
required
boolean = false
selectOnFocus
boolean = false
size
Orion.Size = 'md'
suffixFontIcon
string = undefined
suffixIcon
Orion.Icon = undefined
time
boolean = false
type
Orion.DatepickerType = 'date'
validation
string | ((val: any) => boolean) | Orion.Validator.Rule | Orion.Validation.Rule | boolean = undefined
validationErrorMessage
string = undefined
valueDisplayFormat
Function = undefined
Events
Name
Payload type
focus
FocusEvent
blur
FocusEvent
input
VModelType
change
VModelType
update:modelValue
VModelType
clear
No payload
update:range
Nil<Orion.DateRange>
update:multiple
Date[]
Slots
Name
Bindings
multipleDisplay
datas:
Date[]
close:
(date: Date) => void
popper
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