It's noticeable that I'm around here again, lots of threads about small questions that are almost impossible to find using the group search.
I know this has been discussed sometimes, but it was a while ago and make it is now possible.
What I want is to dispatch a message when a tab it's opened. In an ideal world it would be enough to just put an action widget inside that tab, but something makes me think that it will not work that way.
Any idea?
Thanks!
What I want is to dispatch a message when a tab it's opened.
In an ideal world it would be enough to just put an action widget inside that tab, but something makes me think that it will not work that way.
Do you mean "call a web-service"?
I would think there would have to be a widget to dispatch messages, which can be called e.g. via the button widget. Then there would have to be a way to extend the core tabs macro so that clicking a tab will trigger a set of action widgets, as you can do with a generic tab, some parameter perhaps universally called $action which points to a template defining the actions being run.
No I mean a TW message, like the ones dispatched by the button widget or the action-sendmessage widgets. For example tw-new-tiddler
--
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 tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
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/348055af-cc91-4c6c-95b0-155785536a36%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
...you could use the Tab-state-tiddler for a reveal-function. That is no modal but at least something.
Greetings Jan
The tabs are buttons. So just change the tabs macro and add the action widget. So if someone clicks the tab, the action is activated.
thank you for your example.
I ended with something similar for another implementation.
My requirement for what I originally asked here does not allow me to change or override any core macro, so I can't implement my own tabs.
I still thinking we need a widget that acts on loading
I'll check it out