api.getReactiveState()
Description
Gets an object with the reactive properties of Booking
Usage
api.getReactiveState(): object;
Returns
The method returns an object with the following parameters:
{
cards,
cardShape,
filteredCards,
filterShape,
formShape,
... TODO
}
Example
// create Booking
const booking = new booking.Booking("#root", {
cards,
cardShape
});
// get the Reactive State of Booking
const state = booking.api.getReactiveState();
// subscribe on the cards changes and output the array of cards
state.cards.subscribe((data) => {
console.log(data);
});