Hi,
Can someone provide a step-ny-step process of how to create a custom tag and expand on their advantages and limitations? A link to an example is a great plus.
Yes. Suppose i have a UI construct That i use a lot. Or another example, i want a dropdown that acts like a hidden form and applies a transition on entry selection. Suppose i want to add a “depends-on” child for a drop-down.
how do i approach This kind of problem. Am I even asking for a custom tag that makes sense when thinking about moqui screens?
Finally, and this may be loosely linked, is it a good idea to use this kind of UI tag to link client and server UI together So that they can interact?
For example a common XML Element is a link. You can find the definition of a link for different render modes in the corresponding DefaultScreenMacros.render-mode.ftl. For example here’s a list of html, vuet, and qvt:
The main thing you need to do is use a different FTL macros file that includes the OOTB ones and the custom ones you add. The OOTB example of this uses this template file:
This example uses the Moqui Conf XML option to specify a template, the other option is to specify the macro files in a XML Screen def. In this case it is referenced in the MoquiDevConf.xml file: