Class: ToggleTourView

Drupal.tour.views. ToggleTourView

new Drupal.tour.views.ToggleTourView()

Handles edit mode toggle interactions.

Extends

  • Backbone.View

Members

eventsobject

Methods

Gets the relevant document as a jQuery element.

Returns:
Type Description
jQuery A jQuery element pointing to the document within which a tour would be started given the current state.

Gets the tour.

Returns:
Type Description
jQuery A jQuery element pointing to a <ol> containing tour items.

_removeIrrelevantTourItems($tour, $document)

Removes tour items for elements that don't have matching page elements.

Or that are explicitly filtered out via the 'tips' query string.

Name Type Description
$tour jQuery

A jQuery element pointing to a <ol> containing tour items.

$document jQuery

A jQuery element pointing to the document within which the elements should be sought.

See:
Example

This will filter out tips that do not have a matching page element or don't have the "bar" class.

http://example.com/foo?tips=bar

Toolbar tab click event handler; toggles isActive.

Name Type Description
event jQuery.Event

The click event.

Returns:
Type Description
Drupal.tour.views.ToggleTourView The ToggleTourView view.

Model change handler; starts or stops the tour.