Метод закрытия диалогового окна.

ВОЗВРАЩАЕТ:
Undefined

Примеры

<!-- WML -->
<Controls.popup:Dialog name="dialog" template="Controls-demo/Popup/TestDialog" modal="{{true}}">
   <ws:templateOptions key="111"/>
</Controls.popup:Dialog>

<Controls.buttons:Button name="openDialogButton" caption="open dialog" on:click="_openDialog()"/>
<Controls.buttons:Button name="closeDialogButton" caption="close dialog" on:click="_closeDialog()"/>
// JavaScript
class MyControl extends Control{
   ...

   _openDialog() {
      var popupOptions = {
         autofocus: true
      }
      this._children.dialog.open(popupOptions)
   }

   _closeDialog() {
      this._children.dialog.close()
   }
   ...
}
// TypeScript
import {DialogOpener} from 'Controls/popup';

this._dialog = new DialogOpener();

closeDialog() {
    this._dialog.close();
}

См. также