Booking
The values of `booking` inside `booking-calendar`.
On this page
Where it can go
- Inside
booking-calendar. - On text.
Values
| Attribute and value | What it is | Notes |
|---|---|---|
booking="day" | Day | Template: one copy per day of the range, with data-date and the classes is-today, is-closed (no slot) and is-full (every slot full); on container |
booking="slot" | Slot | Template: one copy per slot of the day. Picked: is-selected and aria-pressed; full: is-full and disabled. A click picks it, a second click lets it go; on button; inside booking-calendar [booking=“day”] |
booking="day-number" | Day of the month | 12; inside booking-calendar [booking=“day”] |
booking="weekday" | Weekday | Mon, in the site’s language; inside booking-calendar [booking=“day”] |
booking="month" | Month | October, in the site’s language; inside booking-calendar [booking=“day”] |
booking="date" | Full date | Monday 12 October, in the site’s language; inside booking-calendar [booking=“day”] |
booking="time" | Time | The slot’s time, in the time zone of the store’s location; inside booking-calendar [booking=“slot”] |
booking="left" | Places left | inside booking-calendar [booking=“slot”] |
booking="capacity" | Places | inside booking-calendar [booking=“slot”] |
booking="range" | Days shown | The first and the last day of the range |
booking="selection" | Picked slot | The day and the time of the picked slot |
booking="error" | Error | In the cart: why a slot could not be held |