does tiddler widget really have "class" attribute?

42 views
Skip to first unread message

Rustem

unread,
Sep 1, 2017, 6:05:16 AM9/1/17
to TiddlyWiki

The spec (http://tiddlywiki.com/#TiddlerWidget, excerpt below) says there is "class" attribute, but I don't see that it is being added. Looked at the source code (http://tiddlywiki.com/#%24%3A%2Fcore%2Fmodules%2Fwidgets%2Ftiddler.js), it's not there at all.

TiddlerWidget


Content and Attributes

Attribute Description
tiddlerThe title of the tiddler to become the new current tiddler
classCSS classes to be added to the generated elements

Jeremy Ruston

unread,
Sep 1, 2017, 6:14:16 AM9/1/17
to tiddl...@googlegroups.com
Hi Rustem


The spec (http://tiddlywiki.com/#TiddlerWidget, excerpt below) says there is "class" attribute, but I don't see that it is being added. Looked at the source code (http://tiddlywiki.com/#%24%3A%2Fcore%2Fmodules%2Fwidgets%2Ftiddler.js), it's not there at all.

Thank you for spotting that - it’s a 2 year old documentation error. The “tiddler” widget doesn’t actually generate any DOM nodes and so has nowhere to put the specified classes. I’ve fixed the docs for 5.1.15

Best wishes

Jeremy.


TiddlerWidget


Content and Attributes

Attribute Description
tiddlerThe title of the tiddler to become the new current tiddler
classCSS classes to be added to the generated elements

-- 
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/041305d0-5525-4215-ac4b-51d245d16fc9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages