This page contains a brief introduction and examples of the new external booking api.
Operational Tests :
Code Generator app : Generator
The installation process for v2 has been slimmed down to reduce the level of complexity. The user need only add the following script into the web page header :
The simplest possible usage can be summed up in the following example.
On page load the javascript code will generate a button, provided there is an HTML Element containing the id provided in the buttonTargetId setting.
By default the booxi widget is configured as english and loading as an iFrame
For a hands on introduction take a look at the Basic Usage Examples page.
During the initial configuration it is possible to define a couple of settings which are applied globally on all button instances. Here is a quick example :
The above will set the default language to Dutch, remove the icon from the book button and have a custom text.
During the configuration we can also define settings which effect the global behavior of the plugin.
The above settings will apply to every single button. In this case book now will open as an external popup, and within book now the google analytics key will be instanced for basic analytic feedback.
The configure method will return an object which serves as your interface with the JS API. Through this object we are able to create more buttons as well as customize some their behavior.
Additionally the button creation methods enable the defining the pre-selection of certain elements when opening book now
It is also possible to define a booking profile without creating a button. The profile can be called via onclick methods or used to create a button at a later time