Modules
Classes
- UbuntuUI
- UbuntuUI.Button
- UbuntuUI.Dialog
- UbuntuUI.Header
- UbuntuUI.List
- UbuntuUI.Page
- UbuntuUI.Pagestack
- UbuntuUI.Popover
- UbuntuUI.Shape
- UbuntuUI.Tabs
- UbuntuUI.Toolbar
Methods
UbuntuUI.Dialog
Class UbuntuUI.Dialog
Class defined in:0.1/ambiance/js/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 inside the content div as a sibling to the pagestack div.
UbuntuUI.Dialog
(
)
0.1/ambiance/js/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
toggle
(
)
0.1/ambiance/js/dialogs.js:65
Toggle a dialog, which means removing its 'active' class if it has one, or adding the 'active' class if it does not have one