\define myfilter()
[tag[$:/tags/Stylesheet]search[vanilla/base]sort[title]]
\end
Suggestion #1: Stylesheet Toggler
Ouch! Collision while catching the ball :–)
Ex-volley-ball-player here, Mark. But I have to admit that my VB-level was only very amateur-ish, just as my development-skills.
Cheers, Thomas
--
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+unsubscribe@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/43cf2be1-d335-426c-b379-76e19d9164c5%40googlegroups.com.
For eg: <$button attributes="myatttiddler">Hello</$button>
and myatttiddler should have text like
{
"class": "myclass",
"style": "background:blue;",
"tabindex": 0
}
This has two advantages.
a) It will help to decrease repetition of these attributes for various widgets.
b) It will help to include the html properties not yet supported for that widget like "tabindex" in the above example.
Kixam already implemented this for his date picker widget. I hope this will become norm for all the widgets.
I would like to see an 'attributes' parameter for widgets. The parameter should point to a tiddler that holds all the attributes of that widget which will be mapped to html "as is".
For eg: <$button attributes="myatttiddler">Hello</$button>
and myatttiddler should have text like
{
"class": "myclass",
"style": "background:blue;",
"tabindex": 0
}
IMO this can already be done with macors, without any new invention.-m
<$button tabindex=0>My Button</$button>
<button tabindex="0">My Button<button>
Moreover, macros are not taking care of the second part, which is support for unknown parameters.For eg: I type
<$button tabindex=0>My Button</$button>and the generated html fails to show the tabindex property. Tabindex is not yet supported as a property of button widget. Currently if we want to add it, we need to modify button.js. I was hoping the widgets like button, edit-text etc will map all unknown parameters to the generated html counterpart without modification. In the above example, it would generate
<button tabindex="0">My Button<button>
IMO this can already be done with macors, without any new invention.-mCan you provide an example? So far I failed to replicate the intended results. When I write <$button <<myparams>>> Hello </$button> it returns an error.
{
"class": "myclass",
"to": "params"
}
...