dojox.widget.Dialog

Status:Draft
Version:1.0
Project owner:Peter Higgins
Available:since 1.2

This is an extension to the dojox.widget.DialogSimple providing additional sizing options, animations, and styling.

Introduction

This widget’s usage is nearly identical to the Dijit Dialog. show() and hide() change the display state, attr(“title”, “new title”) will manipulate the title (if visible), and so on. The difference comes in the creation parameters set.

Usage

You will need the CSS, as well as a Theme CSS file. For instance, tundra:

1
2
  <link rel="stylesheet" href="dojotoolkit/dijit/themes/claro/claro.css" />
  <link rel="stylesheet" href="dojotoolkit/dojox/widget/Dialog/Dialog.css" />

And to require the module in:

1
dojo.require("dojox.widget.Dialog");

Examples

TODOC: show off some of the sizing options.

Resize an existing Dialog:

1
2
  dlg.set("dimensions", [400, 200]); // [width, height]
  dlg.layout(); //starts the resize

Notes

  • An API change between 1.2 and 1.3 exists: the property fixedSized in 1.2 was renamed to sizeToViewport in 1.3 for clarity
Error in the documentation? Can’t find what you are looking for? Let us know!