Show title as tagpil in header of slider.

39 views
Skip to first unread message

vinvi...@gmail.com

unread,
Jan 21, 2021, 12:58:44 PM1/21/21
to TiddlyWiki
Hello,

In this code: How can I make the title appear as a tag pill  {{||$:/core/ui/TagTemplate}}, and the contents of field "title-description" behind it?



\define tmpSearchTid() $:/temp/demo/qa/search-slider
\define faqFilter() [tag[G]search:title {$(tmpSearchTid)$}] 
\define revealStateTid() $:/state/shiraz/slider-macro/$(currentTiddler)$/$(currentTiddler)$

\define expand-all()
<$list filter=<<faqFilter>> >
<$action-setfield $tiddler=<<revealStateTid>> text="open"/>
</$list>
\end

\define close-all() <$action-deletetiddler $filter="[prefix[$:/state/shiraz/slider-macro/]]"/>


<$keyboard key="escape" actions='<$action-setfield $tiddler=<<tmpSearchTid>> $field="text" $value=""/>'>
<$edit-text tiddler=<<tmpSearchTid>> filed="text" tag=input default="" placeholder="Search" class="alert alert-dark w-100"/>
</$keyboard>
<$button actions=<<expand-all>> class="btn btn-secondary btn-sm">Expand all</$button>
<$button actions=<<close-all>>  class="btn btn-secondary btn-sm">Close all</$button>
<$list filter=<<faqFilter>> >
<$macrocall $name=slider label=<<currentTiddler>> src={{!!text}}
labelClass="alert alert-dark" srcClass="alert alert-dark"/> 
</$list>



Thank you,
Reply all
Reply to author
Forward
0 new messages