Show/Hide Elements Without Needing to Declare a Variable

My app is very large, and before setting off on the journey of creation, I want to find the optimal way of working.

I have many areas of my design I need to toggle the visibility of, and I would prefer not to have to declare a variable for each one.

So for example, if I want to change the visibility of my form (id=f_edit_contact), then I would like to be able to say on clickable items:

dmx-on:click="f_edit_contact.hide()"
and
dmx-on:click="f_edit_contact.show()"

I can already do this on a modal, but I can’t seem to make it work on anything else.

Is this possible, or do I have to go down the “declaring lots of variables” route?

Best wishes,
Antony.

Community Page
Last updated: