Liking cljdoc? Tell your friends :D

re-com.tour


finish-tourcljs

(finish-tour tour)

Closes all tour popovers

Closes all tour popovers
raw docstring

make-tourcljs

(make-tour tour-spec)

Returns a map containing

  • A reagent atom for each tour step controlling popover show/hide (boolean)
  • A standard atom holding the current step (integer)
  • A copy of the steps parameter passed in, to determine the order for prev/next functions It sets the first step atom to true so that it will be initially shown Sample return value: {:steps [:step1 :step2 :step3] :current-step (atom 0) :step1 (reagent/atom true) :step2 (reagent/atom false) :step3 (reagent/atom false)}
Returns a map containing
- A reagent atom for each tour step controlling popover show/hide (boolean)
- A standard atom holding the current step (integer)
- A copy of the steps parameter passed in, to determine the order for prev/next functions
It sets the first step atom to true so that it will be initially shown
Sample return value:
{:steps [:step1 :step2 :step3]
:current-step (atom 0)
:step1 (reagent/atom true)
:step2 (reagent/atom false)
:step3 (reagent/atom false)}
raw docstring

make-tour-navcljs

(make-tour-nav tour)

Generate the hr and previous/next buttons markup. If first button in tour, don't generate a Previous button. If last button in tour, change Next button to a Finish button

Generate the hr and previous/next buttons markup.
If first button in tour, don't generate a Previous button.
If last button in tour, change Next button to a Finish button
raw docstring

start-tourcljs

(start-tour tour)

Sets the first popover atom in the tour to true

Sets the first popover atom in the tour to true
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close