packages/ag-grid-docs/src/dist/aui/js/aui.js
/**
       * Constructor for a Dialog. A Dialog is a popup which consists of Pages, where each Page can consist of Panels,
       * Buttons and a Header. The dialog must be constructed in page order as it has a current page state. For example,
       * calling addButton() will add a button to the 'current' page.
       * <p>
       * By default, a new Dialog will have one page. If there are multiple Panels on a Page, a
       * menu is displayed on the left side of the dialog.
       * </p>
       * Usage:
       * <pre>
       * var dialog = new Dialog(860, 530);
       * dialog.addHeader("Insert Macro")
       * .addPanel("All", "&lt;p&gt;&lt;/p&gt;")
       * .addPanel("Some", "&lt;p&gt;&lt;/p&gt;")
       * .addButton("Next", function (dialog) {dialog.nextPage();})
       * .addButton("Cancel", function (dialog) {dialog.hide();});
       *
       * dialog.addPage()
       * .addButton("Cancel", function (dialog) {dialog.hide();});
       *
       * somebutton.click(function () {dialog.show();});
       * </pre>
       * @class Dialog
       * @constructor
       * @param width {number} dialog width in pixels, or an object containing the Dialog parameters
       * @param height {number} dialog height in pixels
       * @param id {number} [optional] dialog id
      */
Constructor for a Dialog. A Dialog is a popup which consists of Pages, where each Page can consist of Panels,
Buttons and a Header. The dialog must be constructed in page order as it has a current page state. For example,
calling addButton() will add a button to the 'current' page.

By default, a new Dialog will have one page. If there are multiple Panels on a Page, a
menu is displayed on the left side of the dialog.




Constructor for a Dialog . A Dialog is a popup which consists of Pages where each Page can consist of Panels Buttons and a Header . The dialog must be constructed in page order as it has a current page state . For example calling addButton () will add a button to the ' current ' page . By default a new Dialog will have one page . If there are multiple Panels on a Page a menu is displayed on the left side of the dialog .
function Dialog(width, height, id) {
          var options = {};
          if (!+width) {
              options = Object(width);
              width = options.width;
              height = options.height;
              id = options.id;
          }
          this.height = height || 480;
          this.width = width || 640;
          this.id = id;
          options = _jquery2.default.extend({}, options, {
              width: this.width,
              height: this.height,
              id: this.id
          });
          this.popup = createPopup(options);
          this.popup.element.addClass('aui-dialog');
          this.page = [];
          this.curpage = 0;
          new Page(this);
      }
function Dialog ( width , height , id ) { var options = { } ; if ( ! + width ) { options = Object ( width ) ; width = options . width ; height = options . height ; id = options . id ; } this . height = height || 480 ; this . width = width || 640 ; this . id = id ; options = _jquery2 . default . extend ( { } , options , { width : this . width , height : this . height , id : this . id } ) ; this . popup = createPopup ( options ) ; this . popup . element . addClass ( 'aui-dialog' ) ; this . page = [ ] ; this . curpage = 0 ; new Page ( this ) ; }
Constructor for a Dialog.
Constructor for a Dialog .