OrionDateTable
<o-date-table>
is in fact a sub-component of <o-datepicker>
It provides a way to display the calendar in order to pick a date.
However he can be used as a "standalone", to display the datas of calendar`.
It provides a convenient way to display periods with a fine management of the dates that should be excluded. See the example below.
Usage
DateTablePeriods DateTableMonthSwitch DateTableMultiple DateTablePlayground
Props
Name
canGoNextMonth
boolean = true
canGoPrevMonth
boolean = true
dateSelected
Nil<Date> = undefined
dayHover
Nil<Date> = undefined
disableMonthAndYear
boolean = false
displayWeekNumber
boolean = false
maxDate
Nil<Date> = undefined
minDate
Nil<Date> = undefined
modelValue
Nil<Date> = undefined
month
boolean = false
multiple
Date[] = () => []
periods
Nil<Orion.Period[]> = undefined
range
Nil<Orion.DateRange> = undefined
rangeEnd
boolean = false
rangeStart
boolean = false
type
Orion.DateTableType = 'date'
Events
Name
Payload type
update:modelValue
Nil<Date>
update:range
Nil<Orion.DateRange>
update:multiple
Nil<Date[]>
update:dayHover
Nil<Date>
change-month
{ month: number, year: number }
select-specific
Period | PeriodDay
select-period
Period[]
select-day
Period | PeriodDay
PublicInstance
Name
Type
getCurrentDate
() => Date
getCurrentMonth
() => number
getCurrentYear
() => number
selectMonth
(month: number) => void
selectYear
(year: number) => void
_el
(() => HTMLElement | undefined) | undefined