Articles in this section
Category / Section

How to prevent auto initialization of element link in JS application?

1 min read

In JavaScript, 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>









Conclusion

I hope you enjoyed learning how to prevent auto initialization of element links in JS applications.

You can refer to our JavaScript feature tour page to know about its other groundbreaking feature representations and documentation, and how to quickly get started for configuration specifications. You can also explore our JavaScript example to understand how to create and manipulate data.

For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.

If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forumsDirect-Trac, or feedback portal. We are always happy to assist you!



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
Access denied
Access denied