Articles in this section
Category / Section

How to prevent auto initialization of input, button and anchor link elements while including the mobile source file in application?

1 min read

In Mobile JS core, elements like input, button, anchor tag that doesn’t contain data-role attribute are initiated specifically. Therefore, whenever the mobile source file is referred in the sample, then input, button, anchor tag elements (without data-role attribute) are rendered as respective Mobile JS controls automatically.
However, an option is provided to prevent this auto initialization. To prevent default rendering of Mobile JS controls, set App.renderEJMControlsByDef property as false with the script section as in the following code example.

Script

<script>

App.renderEJMControlsByDef = false;

</script>

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment