OrionDatepicker
Usage
<o-datepicker>
displays a configurable datepicker to select a date, a date range or a week, as the demo below.
The time can also be displayed and set. Take a look at the 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