Text Reference for set parameter in button widget

37 views
Skip to first unread message

Mohammad

unread,
Aug 9, 2018, 11:03:10 AM8/9/18
to tiddl...@googlegroups.com
In https://tiddlywiki.com/#ButtonWidget it explains

setTextReference to which a new value will be assigned

Now assume you have a button like this

      <$button 
        set={{!!note-status}}
        setTo="show" 
        class="tc-btn-invisible">
          {{icon/addNote.svg}}
      </$button>

It creates a new tiddler with title got from the {{!!note-status}} and sets its text to show. But the purpose here is to set the field note-status in the current tiddler! However the below code works fine

      <$button 
        set="!!note-status"
        setTo="show" 
        class="tc-btn-invisible">
          {{icon/addNote.svg}}
      </$button>

Note to set="!!note-status"

Do you know why?

- Mohammad

FrD

unread,
Aug 9, 2018, 11:11:37 AM8/9/18
to TiddlyWiki
Hi,

I believe the explanation is at the end of the tiddler https://tiddlywiki.com/#ButtonWidget

Regards

FrD

Mohammad

unread,
Aug 9, 2018, 11:21:12 AM8/9/18
to TiddlyWiki

My bad! Yes it was there!
Thank you FrD.
Reply all
Reply to author
Forward
0 new messages