You could also write a small plugin that does it so that you aren't
creating buttons that could be pressed.
Something like:
//{{{
(function($){
var macro = config.macros.tiddlerLength = {
handler: function(place, macroName, params, wikifier,
paramString, tiddler){
var tid_length = tiddler.text.length;
$('<div />').addClass('tiddler-length').text('Length: ' +
tid_length).appendTo(place);
}
}
})(jQuery);
//}}}
Would allow you to use
<div macro='tiddlerLength'></div>
in your ViewTemplate. Which would print Length: ___ in each tiddler.
It also has a class .tiddler-length that would allow you to target and
style these.
colm
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/tiddlywiki?hl=en.