Function DateSheet
-
DateSheet(
__namedParameters: {
color?: string;
detailUrl?: string;
format?: BookingFormat;
initialSeats?: number;
labels?: Partial<BookingLabels>;
location?: ShopFranchiseLocationResponse;
nextWindow?: Timewindow;
onClose: () => void;
onContinue: (w: Timewindow, seats: number) => void;
onSelect?: (window: Timewindow) => void;
phone?: string;
phoneLabel?: string;
settings: ShopSettings;
variants: ShopTasting[];
window: Timewindow;
windows?: Timewindow[];
},
): ElementParameters
- __namedParameters: {
color?: string;
detailUrl?: string;
format?: BookingFormat;
initialSeats?: number;
labels?: Partial<BookingLabels>;
location?: ShopFranchiseLocationResponse;
nextWindow?: Timewindow;
onClose: () => void;
onContinue: (w: Timewindow, seats: number) => void;
onSelect?: (window: Timewindow) => void;
phone?: string;
phoneLabel?: string;
settings: ShopSettings;
variants: ShopTasting[];
window: Timewindow;
windows?: Timewindow[];
}-
Optionalcolor?: stringOptional CSS color for the event. Optional; omitted unless supplied by the host or backend.
-
OptionaldetailUrl?: stringOptional host event details URL. Optional; omitted unless supplied by the host or backend.
-
Optionalformat?: BookingFormatOptional locale and currency formatting settings.
-
OptionalinitialSeats?: numberInitial selected seat count.
-
Optionallabels?: Partial<BookingLabels>Host-owned copy overrides or account terminology. Optional; omitted unless supplied by the host or backend.
-
Optionallocation?: ShopFranchiseLocationResponseSelected installation location. Optional; omitted unless supplied by the host or backend.
-
OptionalnextWindow?: TimewindowOptional next available timewindow. Optional; omitted unless supplied by the host or backend.
-
onClose: () => void
Close the modal in host state.
-
onContinue: (w: Timewindow, seats: number) => void
Receive the selected window and seat count to continue booking.
-
OptionalonSelect?: (window: Timewindow) => voidReceive the selected dated timewindow. Optional; omitted unless supplied by the host or backend.
-
Optionalphone?: stringHost contact phone number or customer international phone field. Optional; omitted unless supplied by the host or backend.
-
OptionalphoneLabel?: stringCustomer-visible phone link label. Optional; omitted unless supplied by the host or backend.
-
settings: ShopSettings
Authoritative public installation flags and booking limits.
-
variants: ShopTasting[]
Public event variants with backend prices.
-
window: Timewindow
Selected dated timewindow.
-
Optionalwindows?: Timewindow[]Dated availability returned by the API.
-
Returns Element
- __namedParameters: {
Render a selected date in a modal sheet with seats, availability and booking-mode guidance.