Type to search Tours, Hints, options, and events.

to navigate · Enter to open · Esc to close

Documentation

Stimulus

Controller identifiers, every action, and every event with its detail shape.

Two controllers ship with the bundle, and every event they emit is prefixed ux-driver:. Events are dispatched on the controller element and bubble, so document.addEventListener reaches all of them.

Templates print the same action attributes with ux_tour_action() and ux_hints_action(). The tables below are the Stimulus contract those helpers emit.

Controllers

IdentifierDrives
pentiminax--ux-driver--tourTours and Highlights
pentiminax--ux-driver--hintsHints groups

Tour actions

ActionEffectParam
startResolves the steps and starts the Tourindex (optional)
highlightHighlights the first resolved stepnone
nextmoveNext()none
previousmovePrevious()none
moveTomoveTo(index) — ignored unless index is an integerindex
refreshrefresh()none
destroyDestroys the Driver.js instancenone

Hints actions

ActionEffectParam
showResolves the hints and calls show()none
hideHides the Hints instancenone
openopen(hintId)hintId
closeclose()none
dismissdismiss(hintId)hintId
restorerestore(hintId)hintId
restoreAllRestores every current hint, by id or indexnone
refreshrefresh()none

Params are written as data-pentiminax--ux-driver--hints-hint-id-param="export".

Tour events

EventCancelableDetail
ux-driver:pre-connectno{config} from start, {config, step} from highlight
ux-driver:connectno{driver}
ux-driver:emptyno{id}
ux-driver:highlight-startedno{tourId, index, step, element, driver}
ux-driver:highlightedno{tourId, index, step, element, driver}
ux-driver:deselectedno{tourId, index, step, element, driver}
ux-driver:destroyedno{tourId, index, step, element, driver}
ux-driver:nextyes{tourId, index, step, element, driver}
ux-driver:previousyes{tourId, index, step, element, driver}
ux-driver:closeyes{tourId, index, step, element, driver}
ux-driver:doneyes{tourId, index, step, element, driver}
ux-driver:destroy-startedyes{tourId, index, step, element, driver}

Hints events

EventCancelableDetail
ux-driver:hints-pre-connectno{config}
ux-driver:hints-connectno{hints}
ux-driver:emptyno{id}
ux-driver:hint-openno{groupId, hintId, hint, element, data, hints}
ux-driver:hint-dismissno{groupId, hintId, hint, element, data, hints}
ux-driver:hint-button-clickno{groupId, hintId, hint, element, data, hints}

No Hints event is cancelable. ux-driver:empty is shared by both controllers and carries only the group or Tour id.