Hi Tobias *@Jeremy,* > > As for querying the dom, are there some basic helpers in tw5 to do that? > e.g. something corresponding to $.closest() and $.find() in jQuery? >
There are some DOM helper functions in the core: https://github.com/Jermolene/TiddlyWiki5/blob/master/core/modules/utils/dom/dom.js > As you can see, the idea is to have one widget (even partially) redraw the > output of another, in this case even the parent. > To the extent that that is possible, you'd be working in the widget render tree, not the DOM tree. Remember that TW5 isn't like traditional jQuery development. With traditional jQuery work you keep the state of the application in the DOM; that's why there's a lot of DOM manipulation. In TW5, you never keep state in the DOM, and so there's very little DOM manipulation. > Is that a workable / meaningful pattern? > You're trying to apply your existing knowledge of DOM-based development to TW5. I think you'll run into difficulties by approaching it that way, because most of your working assumptions are going to be wrong. You're raising questions and proposals that are concerned with the low level code, and so I think you'll benefit from reading the code. Best wishes Jeremy. > > Best wishes, Tobias. > > -- > 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 http://groups.google.com/group/tiddlywiki. > For more options, visit https://groups.google.com/d/optout. > -- Jeremy Ruston mailto:[email protected] -- 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 http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.

