So I started to implement $tagselect instead of messing with $checkbox… The idea is:
<$tagselect name="somename" tag="sometag" tiddler="an optional tiddler">labeltext</$tagselect> Will generate a radiobutton which will set or remove "sometag" from "an optional tiddler". It works, but is not foolproof as it is not as optimal as it could be. If you want to see it at work: http://skeeve.tiddlyspot.com/#radiobuttons So here are the issues I have: I wanted to use "<<qualify>>" or better this.getStateQualifier but I think I'm using it wrong. If you look at the console, when the tiddler "radiobuttons" gets displayed, you will see the output of calling this.getStateQualifie. It is always "{0}", which isn't too helpful. So I would need some advice here. At the moment I'm still using "an optional tiddler::somename" as the identifying name. This will cause strange display effects I guess when two instances of the same tiddler are displayed. The next issue is: If I set manually in my above linked radiobuttons tiddler all 3 tags ("test 1", "test 2" and "test 3"), no matter which radiobutton I click, all will remain. The problem here is: The radiobuttons don't really know about each other. So I have no way for radiobutton "one" to directly tell the tiddlywiki object of radiobutton "two" and "three" that they should remove their tags. What I do is, I fire change events for the unchecked radio buttons. But this will fail if there are tags for more than 2 buttons because when I fire an event, the tiddler gets refreshed and so will remove and add the tags "at will", because it's asynchronous. I think, I need some way to find, from an HTML element the underlying tiddlywiki objects so that I can tell them what to do. Does someone have any advice for me? -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" 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 http://groups.google.com/group/tiddlywikidev. For more options, visit https://groups.google.com/groups/opt_out.
