Auto open

The EnableAutoOpen property is used to open the Dialog box on initial loading. The default value is false.

  • HTML
  • <div id="alertdlg" data-role="ejmdialog" data-ej-title="Low Battery" data-ej-mode="alert"
            data-ej-leftbuttoncaption="Dismiss" data-ej-enablemodal="true" data-ej-enableautoopen="true"
                10% of battery remaining
        <div style="text-align: center">
            <input data-role="ejmbutton" data-ej-text="Click here to open dialog" type="button" data-ej-touchend="openAlertDialog" id="btn1" />
  • JS
  • function alertClose(args) {
            function openAlertDialog(args) {