UbuntuUI.Dialog - Ubuntu HTML5 API

# Ubuntu HTML5 API: UbuntuUI.Dialog

API Docs for: HTML-14.04-dev~bzr202

#### Class UbuntuUI.Dialog

Class defined in: `dialogs.js:23`

Dialogs are modal full-screen popups that prevent other GUI interactions with the application until dismissed.

Dialogs wrap arbitrary markup.

Dialogs are declared at the top level inside the <em>content</em> div.

`UbuntuUI.Dialog`( `` )
`dialogs.js:23`

##### Example

     <div data-role="content">
           <div data-role="pagestack">
             [...]
           </div>
           <div data-role="dialog" id="dialogID">
             [...]
           </div>
         </div>

         JavaScript access:
         var dialog = UI.dialog("dialogID");

- Methods

DOMElement `element`( `` )
`dialogs.js:73`

Returns the DOM element associated with the id this widget is bind to.

Returns: <DOMElement>

##### Example

       var mydialog = UI.dialog("dialogid").element();

`hide`( `` )
`dialogs.js:59`

Hide a dialog by removing 'active' class

`show`( `` )
`dialogs.js:52`

Display a dialog by adding 'active' CSS class

`toggle`( `` )
`dialogs.js:66`

Toggle a dialog, which means removing its 'active' class if it has one, or adding the 'active' class if it does not have one