This is code for the sidetabs I float to the right side of the tiddler body using a reveal widget.
<$let stateID={{{ [[$:/temp/abc/]addsuffix{!!title}addsuffix[byside]] }}}>
<$reveal type="nomatch" state=<<stateID>> text="show">
<$button set=<<stateID>> setTo="show" class="sidetabbutton" >
{{$:/core/images/info-button}}
</$button>
</$reveal>
<$reveal type="match" state=<<stateID>> text="show">
<$button set=<<stateID>> setTo="hide" class="sidetabbutton" >
{{$:/core/images/info-button}}
</$button>
<$list filter="[all[current]!is[system]!is[shadow]!tag[$:/tags/SideBar]!tag[Journal]!tag[$:/tags/ViewTemplate]!tag[$:/tags/Stylesheet]!tag[tweaks]!TheBrain[no]!has[page-cover]]">
<div class="rightside">
{{sidetabs toggle button}} {{||sidetabs viewtemplate}}
</div>
I want to add an action
to the button widget within the reveal widget used in this code to remove a tag from a stylesheet tiddler (Purpose is to come out of multicolumn layout whenever sidetab button is clicked - this is done by removing the $:/tags/Stylesheet
from the tiddler $:/plugins/kookma/shiraz/styles/multicols/storyriver
). I tried using action listops as shown below, but its not working.
<$let stateID={{{ [[$:/temp/abc/]addsuffix{!!title}addsuffix[byside]] }}}>
<$reveal type="nomatch" state=<<stateID>> text="show">
<$button set=<<stateID>> setTo="show" class="sidetabbutton" actions="""<$action-listops $tiddler="$:/plugins/kookma/shiraz/styles/multicols/storyriver" $tags="-$:/tags/Stylesheet"/>""" >
{{$:/core/images/info-button}}
</$button>
</$reveal>
<$reveal type="match" state=<<stateID>> text="show">
<$button set=<<stateID>> setTo="hide" class="sidetabbutton" >
{{$:/core/images/info-button}}
</$button>
<$list filter="[all[current]!is[system]!is[shadow]!tag[$:/tags/SideBar]!tag[Journal]!tag[$:/tags/ViewTemplate]!tag[$:/tags/Stylesheet]!tag[tweaks]!TheBrain[no]!has[page-cover]]">
<div class="rightside">
{{sidetabs toggle button}} {{||sidetabs viewtemplate}}
</div>
What might be going wrong here ?