Articles in this section
Category / Section

How to find whether the ejmWidgets have been initialized?

1 min read

You can check whether the ejmWidgets have been initialized or not by getting the instance through “data”. Refer the following code example. By running this code you can get the corresponding control object. When it’s not initialized, this code does not return any object value. So, by checking the return value you can check whether it has been initialized or not.

Script

<script> 

    var buttonObject = $('#buttonId').data('ejmButton');

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