tool_usertours/usertours

User tour control library.

Source:

Methods

Source:

Add a reset link to the page.

(inner) fetchTour(tourId)

Source:

Fetch the configuration specified tour, and start the tour when it has been fetched.

Parameters:
Name Type Description
tourId Number

The ID of the tour to start.

(inner) findMatchingTour(tourDetails, filters) → {null|object}

Source:

Find the first matching tour.

Parameters:
Name Type Description
tourDetails Array.<object>
filters Array.<object>
Returns:
Type
null | object

(inner) init(tourDetails, filters)

Source:

Initialise the user tour for the current page.

Parameters:
Name Type Description
tourDetails Array

The matching tours for this page.

filters Array

The names of all client side filters.

(inner) markStepShown(e)

Source:

Mark the specified step as being shownd by the user.

Parameters:
Name Type Description
e Event

(inner) markTourComplete(e)

Source:

Mark the specified tour as being completed by the user.

Parameters:
Name Type Description
e Event
Listens to Events:

(inner) resetTourState(tourId) → {Promise}

Source:

Reset the state, and restart the the tour on the current page.

Parameters:
Name Type Description
tourId Number

The ID of the tour to start.

Returns:
Type
Promise

(inner) startBootstrapTour(tourId, template, tourConfig) → {Object}

Source:

Start the specified tour.

Parameters:
Name Type Description
tourId Number

The ID of the tour to start.

template String

The template to use.

tourConfig Object

The tour configuration.

Returns:
Type
Object