• nbZones – The number of columns (zones) in the grid.
There are also a number of methods of interest on the GridContainer including:
• setColumns() - Set the number of columns to show. This has to be greater than or
equal to the number of columns that contain widgets. For example, if a grid container
contains three widgets with the first two being in column 1 and the last being in column 2,
then we can set the number of columns to be 2 or greater. We can't set the number of
columns to be 1 while the number of used columns is greater than 1.
• enableDnd() - Enabled Drag and drop in the container.
• disableDnd() - Disable Drag and drop in the container.
• getChildren() - Returns a NodeList of child widgets container in the container. Use
the NodeList accessors to work with this object. It isn't a simple array.
Closely associated with the GridContainer is a second Dojo widget called
"dojox.widget.Portlet". This widget provides a title pane container that is designed to live
within a GridContainer. It has a relationship to GridContainer in that it can be dragged
and dropped around the environment.
This widget also has a required style sheet called:
• dojox/widget/Portlet/Portlet.css
The Portlet widget has the following properties:
• closeable – A boolean that defines whether or not the widget can be closed.
• dragRestriction – Can the widget be dragged.
• title – The title of the Portlet.
To nest even further, a child of a Portlet can be an instance of
dojox.widget.PortletSettings which will add a settings pop-down to the widget.
See also:
• dojoDocs – dojox/layout/GridContainer – 1.9
• dojoDocs – dojox/widget/Portlet – 1.9
• A rich sample of Grid Container
Expando Pane
This widget is flagged as experimental. It is meant to be contained within a Border Container.
In order to use this Widget, one must include a style sheet found at:
dojox/layout/resources/ExpandoPane.css
Colors
Dojo provides a couple of widgets for picking colors.
Page 173
Kommentare zu diesen Handbüchern