-
Notifications
You must be signed in to change notification settings - Fork 0
MX Multiverse
Kenneth Tilton edited this page Mar 23, 2022
·
3 revisions
This will be a page for developing and testing support for multiple matrixes--simply models without parents--co-existing on a single page, along with vanilla DOM not managed by MX code.
Interesting issues:
- extending
fgetto work across MXes; - reactivity across MXes;
- all the above with MX populations changing; and
- dynamic injection/removal from vanilla DOM.
Well this turned out interestingly. We added a "Debug" button to the trainer toolbar. Click it and it adds/removes a second mxWeb matrix whose DOM gets added/removed from a static HTML DIV.
The so-called "Debugger" simply displays a hierarchy of DIVs mirroring the structure of the current mission. Baby steps.
-
fgetis unchanged for now. Matrices can be registered in a dictionary, then retrieved explicitly and searched withfget; - the debigger matrix follows the app matrix. A click handler in the former mutates the style of a DIV in the second;
- The debugger display shows the app structure dynamically; and
- the debugger matrix can be cleared and reinstated at will.
Code is in mxweb-trainer.mission-control.
Help learning mxWeb is available on the #matrix channel of Clojurians Slack.
Issues with this trainer can be reported on its GitHub repo.