Skip to content

Function: createDriver() ​

ts
function createDriver(options?): Driver;

Create a driver: the tour engine. It owns the config, the reactive state (driver.state) and every behaviour of driver.js; rendering is left to <DriverTour> (or your own components reading driver.state).

The instance is inert on the server: drive() and highlight() do nothing.

Parameters ​

ParameterType
optionsConfig

Returns ​

Driver

Released under the MIT License.