title: $:/plugins/tiddlywiki/tour/panel
tags: $:/tags/PageTemplate
\whitespace trim
\procedure tour-buttons()
\procedure tv-action-refresh-policy() always
<$list filter="[function[tour-is-not-first-step]]" variable="ignore">
<$button class="tc-btn-big-green" style="background-color: red;">
<>
back
$button>
$list>
<$button class="tc-btn-big-green" style="background-color: purple;">
<>
next
$button>
\end
<$list filter="[{$:/config/ShowTour}!is[blank]else[show]match[show]]" variable="ignore">
<$image class="tc-tour-panel-banner-image" source={{{ [{$:/config/CurrentTour}get[logo]] }}}/>
<$button set="$:/config/ShowTour" setTo="no" class="tc-btn-invisible">{{$:/core/images/close-button}}$button>
<$button popup=<
> class="tc-btn-invisible tc-tour-panel-list-button" selectedClass="tc-selected">
''Tour'': <>
$button>
<$reveal state=<> type="popup" position="belowleft" animate="yes">
$reveal>
<$let
currentTour={{$:/config/CurrentTour}}
currentTourStep={{$:/state/tour/step}}
condition-var={{{ [
get[condition-var]] :map[subfilter] }}}
>
<$list filter="[!has[condition]]" variable="ignore">
<$transclude tiddler=<> mode="block"/>
<>
$list>
<$list filter="[has[condition]]" variable="ignore">
<$transclude tiddler=<> mode="block"/>
<$list filter={{{ [get[condition]] }}} limit="1" variable="ignore">
<$confetti/>
Congratulations, you may proceed
<>
$list>
$list>
$let>
<$list filter="[{$:/state/tour/step}has[selector]]" variable="ignore">
<$button class="tc-btn-big-green" style="background-color: green;">
<$action-sendmessage $message="tm-spotlight-element" selector={{{ [{$:/state/tour/step}get[selector]] }}} selector-fallback-1={{{ [{$:/state/tour/step}get[selector-fallback-1]] }}} selector-fallback-2={{{ [{$:/state/tour/step}get[selector-fallback-2]] }}}/>
show me a hint
$button>
$list>
$list>