Wanting to create a reveal, a parseTreeNode expects me to define the type property as the name of the widget.However, the reveal widget has a type property of its own. How to initialize?Does that also mean that any widget should better avoid to have a "children" attribute (for the same conflicting reasons)?
Best wishes,Tobias.--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/c026123f-2119-4652-a6b6-a95d88cbbeb1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
The “type” attribute for the reveal widget is passed within the “attributes” member of the parse tree node, entirely separate from the “type” property on the parse tree node.
this.children
which is the array holding the child widgets
<$button tooltip="Modify All">
<$list filter="[tag[MyTag]]">
<$action-setfield $tiddler=<<currentTiddler>> tags="[[tag one]] [[tag two]]" caption="something"/>
</$list>
Modify All
</$button>Was BJ's post, not mine :-)
I'm not sure as to your final objective, but widgets may already be nested like so:
I know we can (try to) achieve complex wikitext constructs to make ends meet with (sometimes a plethora of helper-)macros, but ... Those wikitext macros are quite horrible to both develop and maintain.
QUESTIONTo force a child widget being a reveal into either block or inline mode, do I simply set isBlock: true / false?
To force a child widget being a reveal into either block or inline mode, do I simply set isBlock: true / false?The handling of the 'mode=' attribute of the $transclude widget may suggest some ideas
Trial and error has me believe that I can set, even override this.parseTreeNode.isBlockno matter what the parser initialized it with. So that's great.
Best wishes,Tobias.--
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 https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/0bcda88e-a162-40cb-b87c-487bb0ea6eca%40googlegroups.com.
Perhaps we can move this particular discussion to GitHub; it’s much easier to talk about code there.