> Actually it left a big space above it, so I put the script in another
> tiddler and accessed it in my to-do list with the PartTiddlerPlugin.
http://www.TiddlyTools.com/#ChecklistScript
has been re-written to eliminate the dependency on CheckboxPlugin
(though it does still require InlineJavascriptPlugin to initialize the
checkboxes).
[[ChecklistScript]] now uses direct HTML to render checkboxes that
toggle tags. It also uses an interesting technique to define the HTML
in a hidden tiddler slice that can be easily re-used to embed a
'toggletag' checkbox into any tiddler, like this:
/% HTML/script code for rendering a 'toggle tag' checkbox:
|toggletag|<html><form style="display:inline"><input type="checkbox"
name='c' onclick="var
tid=story.findContainingTiddler(this).getAttribute('tiddler');
store.setTiddlerTag(tid,this.checked,'$1');"></form></html><script>var
t=store.getTiddler(story.findContainingTiddler(place).getAttribute('tiddler'));
place.lastChild.getElementsByTagName('form')
[0].c.checked=t.isTagged('$1');</script>|
%/
<<tiddler [[ChecklistScript::toggletag]] with: questions>> Ask
questions
<<tiddler [[ChecklistScript::toggletag]] with: answers>> Seek Answers
<<tiddler [[ChecklistScript::toggletag]] with: fun>> Have Fun
<<tiddler [[ChecklistScript::toggletag]] with: difference>> Make A
Difference
<<tiddler [[ChecklistScript::toggletag]] with: smile>> Smile
enjoy,
-e