Now that I have some idea of how things work it is pretty simple to get the 
select, link, radio and checkbox widgets to be able to trigger action 
widgets, so here is a demo 
<http://ooktech.com/jed/ExampleWikis/InvokingActions/>.

For the link and radio widgets there aren't any problems. For the checkbox 
widget you need to use a reveal widget to give it different behavior for 
checking and unchecking, so you can only give it different behavior in 
5.1.8+.

The select widget this may not be particularly useful the way I have it. 
You can use reveal widgets like on the checkbox, but they are evaluated 
using the current state of the wiki, not the new state after the select 
widget changes. I would like to find a way to only have the actions in the 
option you select happen, but I haven't found a way to do that yet.

There is a bit more explanation in the demo, but most of it should be 
pretty straightforward.

I am hoping to make a pull request for at least the radio and link widgets 
because they are the ones that can be used the easiest without anything 
unexpected. 
Because you would have to use a reveal widget to change what a checkbox 
widget does for checking vs unchecking I am a bit concerned about it being 
confusing for new users, and I am hoping someone has an idea to make it 
work more intuitively.

The select widget needs work. I am trying to get it to only trigger the 
action widgets inside the option you pick, but I haven't had any success 
getting the raw wikitext from each option entry.

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to