HI Danielo

> I am here with a task that I though it would be easy, but it is driving me 
> nuts.
> 
> I want to create a button that opens the info toolbar on certain tab. Sadly, 
> due to the following characteristic of the qualify macro:
> 
> It returns a unique string that encodes its position within the widget tree 
> <http://tiddlywiki.com/#Widgets>, 
> 
> I can't target the same state tiddler from outside the info panel . So, the 
> same qualify widget <<qualify "$:/state/tab">> returns two different things 
> depending from where it is being called.
> 
> Any other option? It's setting the default tab my only option?

In fact, the main view template computes the title for the state tiddler for 
the display state of the tiddler info panel and places it in the variable 
“tiddlerInfoState":

https://github.com/Jermolene/TiddlyWiki5/blob/master/core/ui/ViewTemplate.tid#L9

That variable is then picked up in the "title" view template segment that 
contains the info panel:

https://github.com/Jermolene/TiddlyWiki5/blob/master/core/ui/ViewTemplate/title.tid#L36

So, if your button is in the same tiddler as you want to display the info 
panel, then you’ll be able to use the “tiddlerInfoState” variable to target the 
state tiddler.

Best wishes

Jeremy


> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "TiddlyWiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at https://groups.google.com/group/tiddlywiki 
> <https://groups.google.com/group/tiddlywiki>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/18eecf21-58eb-446c-a712-78a291b81453%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/tiddlywiki/18eecf21-58eb-446c-a712-78a291b81453%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CE466BFC-BC91-4E2D-813D-01F4F6861EAB%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to