API overview
Booking constructor
new booking.Booking("#root", {
// initial configuration parameters
});
Parameters:
- an HTML container (the ID of the HTML container)
- an object of the configuration parameters (check here)
Booking methods
Name | Description |
---|---|
METHOD_TEMPLATE() | short description... |
Booking internal API
Event Bus methods
Name | Description |
---|---|
api.exec() | Allows triggering the inner events |
api.intercept() | Allows intercepting and preventing the inner events |
api.on() ? | Allows attaching a handler to the inner events |
api.setNext() | Allows adding some action into the Event Bus order |
State methods
Name | Description |
---|---|
api.getReactiveState() | Gets an object with the reactive properties of Booking |
api.getState() | Gets an object with the StateStore properties of Booking |
RestDataProvider methods
Name | Description |
---|---|
INNER_METHOD_TEMPLATE() | short description... |
Booking events
Name | Description |
---|---|
confirm-slot | Fires when confirming the booking of a slot |
select-slot | Fires when selecting a slot |
set-filter | Fires when filtering cards |
Booking properties
Name | Description |
---|---|
cards | Optional. An array of objects containing the cards data |
cardShape | Optional. An object of settings for managing appearance of the information blocks |
filteredCards | Optional. An array of objects containing the filtered cards data |
filterShape | Optional. An object of settings for managing the filter functionality |
formShape | Optional. An array of objects containing settings for managing the appearance and functionality of the Reservation editor |
infoShape | Optional. An object with settings for managing the information block appearance |