I want to have a slider wich would open a list based on filters with tags.Is there anything in TW5 like the slider in TW2?
--
You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywikide...@googlegroups.com.
To post to this group, send email to tiddly...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywikidev.
For more options, visit https://groups.google.com/groups/opt_out.
I find this syntax incredibly cumbersome compared to tw2 and I am quite reluctant to use it.
In fact, I don't even want to (be forced to use) a state unless explicitly specified. All I'd want is for the slider to be independent and to thus not open a number of them by virtue of putting this in the same tiddler...
When do I need slider states persisted within tiddlers? Mostly never.
<$slide text="Click me...">You clicked!</$slide>- tobias
For example, one could define a slider macro like so:\define slider(label,text)<$button popup="$:/state/$label$">$label$</$button><$reveal type="nomatch" text="" default="" state="$:/state/$label$" animate="yes">
$text$</$reveal>\endAnd then invoke it with:<<slider "Click me!" "This is a revealing sentence">>
The plan is for TW5 to include a bunch of built in macros, similar to TW classic.
In fact, I don't even want to (be forced to use) a state unless explicitly specified. All I'd want is for the slider to be independent and to thus not open a number of them by virtue of putting this in the same tiddler...Storing state isn't something that's optional that we can choose not to do. It's a cornerstone of the TW5 architecture; the UI elements like tabs require state in order to provide the functionality that users expect.Anyhow, we can hide the state mechanism behind macros; people only need to understand the state mechanism if they're trying to build complex functionality up out of widgets.
The reason that state is stored in tiddlers isn't to enable it to be persisted, it's a more fundamental aspect of the design. During refresh processing arbitrary DOM nodes may need to be destroyed and recreated, so we can't store state in the DOM.