Hi Tobias

> 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)?

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.

A good example of a widget that generates other widgets is the edit widget:

https://github.com/Jermolene/TiddlyWiki5/blob/master/core/modules/widgets/edit.js#L52-L61

Best wishes

Jeremy.


> 
> 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 [email protected] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at http://groups.google.com/group/tiddlywikidev 
> <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
>  
> <https://groups.google.com/d/msgid/tiddlywikidev/c026123f-2119-4652-a6b6-a95d88cbbeb1%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
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 [email protected].
To post to this group, send email to [email protected].
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/133BEC9D-79B2-4A31-80C9-6C8A606C5C96%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to