Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
364 lines (197 sloc) 11.5 KB

Dijit Overview

Dijit is Dojo's UI Library, and lives as a separate namespace dijit. Dijit requires :ref:`Dojo Core <dojo/index>` and :ref:`Dojo Base <dojo/_base/index>`.

Each of the widgets and functionality provided by Dijit are described in the following sections, though the :ref:`Getting Started <quickstart/index>` guides and the Tutorials cover some basics.

General Information

Utility Classes

Utility methods and classes used by widgets or by applications with widgets.

Infrastructure Widgets

Menu Widgets

These are the main Menu widgets:

There are also supporting widgets such as :ref:`dijit/MenuItem <dijit/MenuItem>` which are discussed on the pages above.

Tree Widgets

Miscellaneous Widgets

Form Widgets and Handling


Note about programmatic instantiation

For most of the Dijit widgets, you can provide a refNode which is a placeholder to position your node. Beware that any attribute set on it (form action, input value, etc.) won't be taken into account. If you want to degrade nicely and have a non-JS compatible version of your site and avoid duplicating attributes on controls and on instantiation, you should use :ref:`parser.instantiate() <dojo/parser>`:

.. js ::

  require(["dojo/parser", "dojo/dom", "dijit/form/ValidationTextBox"], function(parser, dom, ValidationTextBox){
    var myNode = dom.byId("myNode");
    // All attributes of myNode will be preserved in the widget
    parser.instantiate([ myNode ], {
      data-dojo-type: "dijit/form/ValidationTextBox",
      dojoSpecificAttr1: value,
      dojoSpecificAttr2: value