Jan, in the stickytitlesfix I use this macro that allows assigning any css
property to a data attribute of your choice:
\rules only
$(classesBefore)$[$(tagName)$$(tagSelector)$"$(escapedTagValue)$"]$(
classesAfter)$ {
$(tagStyles)$
}
\end
\define assign-css-to-data-tag(tagName:"data-tiddler-title",tagSelector:"=",
tagValue:"",tagStyles:"",classesBefore:"",classesAfter:"")
\whitespace trim
<$vars escapedTagValue={{{ [<__tagValue__>escapecss[]] }}} tagStyles=<<
__tagStyles__>> tagName=<<__tagName__>> tagSelector=<<__tagSelector__>>
classesBefore=<<__classesBefore__>> classesAfter=<<__classesAfter__>>>
<<create-data-tag>>
</$vars>
\end
\define create-data-tag()
--
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 [email protected].
To post to this group, send email to [email protected].
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/bdf4b56b-6982-485c-b6cf-407e02f7e0b1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.