Skip to main content

slotSize

Description​

Optional. Defines the duration of a booking slot for all cards

note

This value will be applied in case the size value is not set for the size or slotSize parameter inside the data property.

Usage​

slotSize?: number;

Parameters​

  • number - (optional) the duration of a booking slot in minutes; the default value is 60 minutes

Example​

const slotSize = 45;

new booking.Booking("#root", {
slotSize,
// other parameters
});

The snippet below shows how to set duration and gap for all slots: