User tour control library.
- Source:
- Copyright:
- 2016 Andrew Nicols
- 2016 Andrew Nicols
Methods
(inner) addResetLink()
Add a reset link to the page.
(inner) fetchTour(tourId)
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}
Find the first matching tour.
Parameters:
Name | Type | Description |
---|---|---|
tourDetails |
Array.<object> | |
filters |
Array.<object> |
Returns:
- Type
- null | object
(inner) init(tourDetails, filters)
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)
Mark the specified step as being shownd by the user.
Parameters:
Name | Type | Description |
---|---|---|
e |
Event |
(inner) markTourComplete(e)
Mark the specified tour as being completed by the user.
Parameters:
Name | Type | Description |
---|---|---|
e |
Event |
Listens to Events:
(inner) resetTourState(tourId) → {Promise}
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}
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