2023-01-16 19:56:39 +00:00
|
|
|
title: $:/plugins/tiddlywiki/tour/panel
|
|
|
|
tags: $:/tags/PageTemplate
|
|
|
|
|
2023-02-01 21:14:29 +00:00
|
|
|
\define tour-buttons()
|
2023-01-16 19:56:39 +00:00
|
|
|
<$button>
|
|
|
|
<$action-setfield $tiddler="$:/state/tour/step" $field="text" $value={{{ [all[shadows+tiddlers]tag[$:/tags/TourStep]before{$:/state/tour/step}] }}}/>
|
|
|
|
back
|
|
|
|
</$button>
|
|
|
|
<$button>
|
|
|
|
<$action-setfield $tiddler="$:/state/tour/step" $field="text" $value={{{ [all[shadows+tiddlers]tag[$:/tags/TourStep]after{$:/state/tour/step}else[$:/plugins/tiddlywiki/tour/steps/finished]] }}}/>
|
|
|
|
next
|
|
|
|
</$button>
|
|
|
|
\end
|
|
|
|
|
|
|
|
<$list filter="[{$:/config/ShowTour}!is[blank]else[show]match[show]]" variable="ignore">
|
|
|
|
<div class="tc-tour-panel">
|
|
|
|
<div class="tc-tiddler-controls">
|
|
|
|
<$button set="$:/config/ShowTour" setTo="no" class="tc-btn-invisible">{{$:/core/images/close-button}}</$button> ''Tour''
|
|
|
|
</div>
|
|
|
|
<$transclude tiddler={{$:/state/tour/step}} mode="block"/>
|
2023-02-01 21:14:29 +00:00
|
|
|
<$button>
|
|
|
|
<$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 hint
|
|
|
|
</$button>
|
2023-01-16 19:56:39 +00:00
|
|
|
</div>
|
|
|
|
</$list>
|