Skip to main content

api.exec()

Description

Allows triggering the inner events

Usage

api.exec(
event: string,
config: object
): void;

Parameters

  • event - (required) an event to be fired
  • config - (required) the config object with parameters (see the event to be fired)

Events

info

The full list of the Booking internal events can be found here

Example

// create Booking
const booking = new booking.Booking("#root", {
cards,
cardShape
});

// ...
booking.api.exec("set-filter", {
filterData: {
date: {
start: new Date(),
end: new Date(2023, 4, 10),
},
global: "Allergist",
time: [],
},
});