closing

Triggered before the dialog is closed.

Parameters

NameTypeDescription
e {object} event data

Examples

sample

    
 <div id="dialog" style="display: none">Close the dialog in order to fire closing event.</div>
 <button onclick="dialog.open()" class="gj-button-md">Open Dialog</button>
 <script>
     var dialog = $("#dialog").dialog({
         autoOpen: false,
         closing: function (e) {
             alert('The closing event is fired.');
         },
         closed: function (e) {
             alert('The closed event is fired.');
         }
     });
 </script>