Possibility to simplify AppConnect syntax for better readability and beyond. Thought?

We know in recent trend, many developers are abandoning jQuery for vanilla or other techs like the Vue and React but here we use the AppConnect that works with Wappler UI. Even though we can achieve almost what we need using Wappler with very minimal hand coding, but when you go advance there would be need to inspect and modify the dmx codes generated by the Wappler UI.

Looking forward the implementation of BS5, I’m also thinking of getting rid of jQuery, but in my experience using Wappler, I think jQuery might still be useful in my case because in certain aspects that dmx is ‘lacking’ (not an offense), it can do a better job with easier readability and simpler syntax.

Here an example:

Let say I want to set a value to an input located within collapse within modal, while it’s very easy to do with Wappler UI, the generated syntax requires all DOM elements to identify and quite long to read, e.g.:

modal_alluser.accordion_alluser.inp_alluser_access.setValue(1)

In jQuery, this can simply be written as:

$('#inp_alluser_access').val(1)

I think the long syntax probably necessary for the UI to detect the components in the Action Window but if later I decide to rename the modal or move the accordion elsewhere, the generated code will not valid anymore. I need to set it again using the UI or amend the code manually, which can be complicated, especially when there are more than few stuffs going on there.

So now I just wonder if the dmx syntax here can be simplified with just selector e.g. by id, or how about class name and other html5 elements? - so that it’s more readable and easier to maintain, for example #inp_alluser_access.setValue(1).

I understand the main purpose of AppConnect is to be used with the ServerConnect and not a JavaScript library like jQuery but looking forward to the future I hope It can do more so that I can finally getting rid of other dependencies.

*I know that even I don’t use jQuery, things can still be achieved with JavaScript but the simplicity of jQuery is irresistible.

Recap: The main idea here is to implement selector ala jQuery in AppConnect.

What do you guys think?

Community Page
Last updated: