Props
| Name | Description |
|---|---|
activeSegment Type: BbCalendarSegment | Which end the time rail edits in range + |
ampm Type: booleanDefaultfalse | 12-hour display with an AM/PM column (requires |
disabled Type: booleanDefaultfalse | Disables every cell, the navigation and the time rail. See example |
firstDayOfWeek Type: 0 | 1 | 2 | 3 | 4 | 5 | 6Defaultthe locale's week start | First day of the week (0 = Sunday … 6 = Saturday). Omitted, the active locale's week start: Monday for |
floating Type: booleanDefaultfalse | Emit plain calendar strings instead of zoned ISO instants. Implied (and forced) by For delivery days, stays and report filters: a calendar day that must read the same in every timezone. See example |
max Type: string | Maximum selectable value, in this |
min Type: string | Minimum selectable value in this An empty calendar whose window lies entirely after today opens on this month instead of on a disabled grid. See example |
modelValue requiredType: string | string[] | null | v-model: |
multiple Type: booleanDefaultfalse | Multi-selection: each pick toggles a value in a sorted array (days, months or years). Needs an array |
pt Type: PtMap<BbCalendarPtPart, BbCalendarPtState> | Passthrough, object form: the same keys as the |
pt:<part> Type: PtValue | Passthrough, attribute form: one attribute per part,
|
range Type: booleanDefaultfalse | Enables range selection ( Keep the model an array, with |
readonly Type: booleanDefaultfalse | Shows the calendar and lets the user page through it, but no pick changes the value. For a confirmed choice that stays on screen. Paging through months still works. See example |
seconds Type: booleanDefaultfalse | Adds the seconds column (requires |
selectable Type: ((date: string) => boolean) | Predicate invoked per candidate; return For rules a window cannot express, such as weekends or closures. Refused days are already disabled and announced; add no click guard of your own. See example |
step Type: numberDefault1 | Minute-column granularity and arrow stepping (requires |
time Type: string | string[] | null | Companion time model ( |
type Type: DatePickerTypeDefault"date" | What the calendar selects and emits: |
utc Type: booleanDefaultfalse | Emit UTC ( |
v-model
Values kept in sync through v-model.
| Name | Description |
|---|---|
activeSegment Type: BbCalendarSegment | |
modelValue Type: string | string[] | null | Empty, the calendar opens on today's month, or the nearest month inside |
time Type: string | string[] | null | With |
Events
| Name | Description |
|---|---|
grid-pick Type: (value: string | string[] | null): void | Relay of the raw grid pick, before this component combines it with the time. An embedding host binds this to run its own value engine (the date picker closes on it once the selection is complete); clean consumers ignore it and use |
time-pick Type: (payload: { unit: TimeUnit; value: string; }): void | Relay of the raw time-rail pick. An embedding host binds this to run its own value engine; clean consumers ignore it and use |
update:activeSegment Type: (value: BbCalendarSegment): void | The active range end changed (range + |
update:modelValue Type: (value: string | string[] | null): void | Emitted when the selected value changes: a string (single), |
update:time Type: (value: string | string[] | null): void | Companion time model, alongside every change while |
Slots
The listed properties are the ones exposed to the slot scope.
| Name | Description |
|---|---|
<YYYY-MM-DD> Type: BbCalendarDaySlotProps | One date's button label (e.g. Named after the local date exactly as written: |
<YYYY-MM-DD>:append Type: BbCalendarDaySlotProps | Content under one date's cell; beats Named after the local date exactly as written: |
day Type: BbCalendarDaySlotProps | Replaces the day button label inside each calendar day. Replaces every day's number, for a price or a symbol in its place. See example |
day:append Type: BbCalendarDaySlotProps | Appends content below each calendar day. Look the day up from |
Renamed and removed
Names from v2 and from earlier 3.0 betas that no longer work, and what to write instead.
- slot
append:<x><x>:appendfails silently - slot
append:dayday:appendfails silently pt:columnHeaderpt:cellColumnHeaderfails silently