Only private and/or inherited functions are available.
Set or get properties on a widget instance.
Use to make multiple changes to rows while queueing row updating.
NOTE: not currently supporting nested begin/endUpdate calls
Construct the UI for this widget from a template, setting this.domNode.
Determines if the grid can be sorted
connect(obj, event, method)
: _Widget.Handle Connects specified obj/event to specified method of this object
and registers for disconnect() on widget destroy.
Kick off the life-cycle of a widget
Creates a new Grid layout
create grid managers for various tasks including rows, focus, selection, editing
Creates a new virtual scroller
Creates a new Grid selection manager.
Destroy this widget, but not its descendants.
This method will, however, destroy internal widgets such as those used within a template.
Recursively destroy the children of this widget and their
descendants.
Destroy this widget and its descendants. This is the generic
"destructor" function that all widget users should call to
cleanly discard with a widget. Once a widget is destroyed, it is
removed from the manager object.
Destroys the DOM nodes associated with this widget
Disconnects handle created by connect.
Also removes handle from this widget's list of connects.
Use after calling beginUpdate to render any changes made to rows.
get(inRowIndex, inItem)
Default data getter.
Retrieves the cell object for a given grid column.
Returns the cell name of a passed cell
Returns all the widgets contained by this, i.e., all widgets underneath this.containerNode.
Does not return nested widgets, nor widgets that are part of this widget's template.
Returns all the widgets contained by this, i.e., all widgets underneath this.containerNode.
This method should generally be avoided as it returns widgets declared in templates, which are
supposed to be internal/hidden, but it's left here for back-compat reasons.
find the rowNode that is not a rowSelector
Returns true if grid is sorted in an ascending direction.
Returns the index of the column on which the grid is sorted
Return true if this widget can currently be focused
and false if not
Checks the page for text direction
Event fired when editing is applied for a given grid cell
Event fired when editing is applied for a given grid row
Called when the widget stops being "active" because
focus moved to something outside of it, or the user
clicked somewhere outside of it, or the widget was
hidden.
Event fired when editing is cancelled for a given grid cell
Event to determine if a grid row may be deselected
Event to determine if a grid row may be selected
Event fired when a cell is clicked.
Event fired when a cell context menu is accessed via mouse right click.
Event fired when a cell is double-clicked.
Event fired when a cell receives focus.
Event fired when mouse is down in a header cell.
Event fired when mouse moves out of a cell.
Event fired when mouse is over a cell.
Connect to this function to receive notifications of mouse click events.
Callback if someone tries to close the child, child will be closed if func returns true
Top level handler for Content events
Connect to this function to receive notifications of mouse double click events.
Event fired when a grid row is deselected
Called when the widget becomes "active" because
it or a widget inside of it either has focus, or has recently
been clicked.
Event fired when a header cell is clicked.
Event fired when a header cell context menu is accessed via mouse right click.
Event fired when a header cell is double clicked.
Event fired when mouse is down in a header cell.
Event fired when mouse moves out of a header cell.
Event fired when mouse moves over a header cell.
Event fired when the grid header is clicked.
Event fired when the grid header context menu is accessed via mouse right click.
Event fired when the grid header is double clicked.
Top level handler for header events
Event fired when mouse moves out of the grid header.
Event fired when mouse moves over the grid header.
Called when another widget becomes the selected pane in a
dijit.layout.TabContainer, dijit.layout.StackContainer,
dijit.layout.AccordionContainer, etc.
Also called to indicate hide of a dijit.Dialog, dijit.TooltipDialog, or dijit.TitlePane.
Grid key event handler. By default enter begins editing and applies edits, escape cancels an edit,
tab, shift-tab, and arrow keys move grid cell focus.
top level handler for Key Events
Connect to this function to receive notifications of printable keys being typed.
Connect to this function to receive notifications of keys being released.
Event fired when mouse is down inside grid.
Event fired when mouse is down inside grid row
Connect to this function to receive notifications of when the mouse moves onto this widget.
Connect to this function to receive notifications of when the mouse moves off of this widget.
Connect to this function to receive notifications of when the mouse moves over nodes contained within this widget.
Event fired when mouse moves out of the grid.
Event fired when mouse moves out of any row (data or header).
Event fired when mouse is over the grid.
Event fired when mouse is over any row (data or header).
Connect to this function to receive notifications of when the mouse button is released.
Event fired when a row is clicked.
Event fired when a row context menu is accessed via mouse right click.
Event fired when a row is double clicked.
Event fired when mouse is down in a row.
Event fired when mouse moves out of a data row.
Event fired when mouse moves over a data row.
Event fired when a grid row is selected
Called when this widget becomes the selected pane in a
dijit.layout.TabContainer, dijit.layout.StackContainer,
dijit.layout.AccordionContainer, etc.
Also called to indicate display of a dijit.Dialog, dijit.TooltipDialog, or dijit.TitlePane.
Event fired when editing is started for a given grid cell
Perform row styling on a given row. Called whenever row styling is updated.
Place this widget's domNode reference somewhere in the DOM based
on standard dojo.place conventions, or passing a Widget reference that
contains and addChild member.
Called after a widget's dom has been setup
Called after the parameters to the widget have been read-in,
but before the widget template is instantiated. Especially
useful to set properties that are referenced in the widget
template.
Remove the selected rows from the grid.
Render the grid, headers, and views. Edit and scrolling states are reset. To retain edit and
scrolling states, see Update.
private, used internally to render rows
resize(changeSize, resultSize)
Update the grid's rendering dimensions and resize it
Update grid when the height of a row has changed. Row height is handled automatically as rows
are rendered. Use this function only to update a row's height outside the normal rendering process.
private, used internally to remove rows
Vertically scroll the grid to a given pixel position
Scroll the grid to a specific row.
Deprecated. Use attr() instead.
Sort the grid on a column in a specified direction
Install a new structure and rebuild the grid.
Called after a widget's children, and other widgets on the page, have been created.
Provides an opportunity to manipulate any children before they are displayed.
This is useful for composite widgets that need to control or layout sub-widgets.
Many layout widgets can use this as a wiring phase.
Subscribes to the specified topic and calls the specified method
of this object and registers for unsubscribe() on widget destroy.
Returns a string that represents the widget. When a widget is
cast to a string, this method will be used to generate the
output. Currently, it does not implement any sort of reversable
serialization.
Stub function. Override to implement custom widget tear-down
behavior.
Unsubscribes handle created by this.subscribe.
Also removes handle from this widget's list of subscriptions
Update the grid, retaining edit and scrolling states.
Change the number of rows.
Render consecutive rows at once.
Update the styles for a row after it's state has changed.
Step during widget creation to copy all widget attributes to the
DOM as per attributeMap and _setXXXAttr functions.
Iterate through the template and attach functions and nodes accordingly.
Reflect a widget attribute (title, tabIndex, duration etc.) to
the widget DOM, as specified in attributeMap.
Relocate source contents to templated container node.
this.containerNode must be able to receive children, or exceptions will be thrown.
Helper function for Widget.attr().
Caches attribute name values so we don't do the string ops every time.
This is where widgets do processing for when they stop being active,
such as changing CSS classes. See onBlur() for more details.
Called when someone connects to one of my handlers.
"Turn on" that handler if it isn't active yet.
This is also called for every single initialization parameter
so need to do nothing for parameters like "id".
This is where widgets do processing for when they are active,
such as changing CSS classes. See onFocus() for more details.
_onSet(item, attribute, oldValue, newValue)
Internal method called when this widget is made visible.
See onShow for details.
Custom setter for the CSS "class" attribute
Sets the style attribut of the widget according to value,
which is either a hash like {height: "5px", width: "3px"}
or a plain string
Does substitution of ${foo} type properties in template string
Only private and/or inherited properties are available.
If autoHeight is true, grid height is automatically set to fit the data.
If it is an integer, the height will be automatically set to fit the data
if there are fewer than that many rows - and the height will be set to show
that many rows if there are more
If autoRender is true, grid will render itself after initialization.
If autoWidth is true, grid width is automatically set to fit the data.
css class to apply to grid cells over which the cursor is placed.
CSS class applied to the grid's domNode
True if user can close (destroy) this child, such as (for example) clicking the X on the tab.
The number of columns this widget should span.
Column of the grid to place the widget.
If set to true, will add drag and drop reordering to views with one row of columns.
Designates where children of the source dom node will be placed.
"Children" in this case refers to both dom nodes and widgets.
For example, for myWidget:
<div dojoType=myWidget>
<b> here's a plain dom node
<span dojoType=subWidget>and a widget</span>
<i> and another plain dom node </i>
</div>
containerNode would point to:
<b> here's a plain dom node
<span dojoType=subWidget>and a widget</span>
<i> and another plain dom node </i>
In templated widgets, "containerNode" is set via a
dojoAttachPoint assignment.
containerNode must be defined for any widget that accepts innerHTML
(like ContentPane or BorderContainer or even Button), and conversely
is null for widgets that don't, like TextBox.
default height of the grid, measured in any valid css unit.
Unsupported by Dijit, but here for completeness. Dijit only supports setting text direction on the
entire document.
Bi-directional support, as defined by the [HTML DIR](http://www.w3.org/TR/html401/struct/dirlang.html#adef-dir)
attribute. Either left-to-right "ltr" or right-to-left "rtl".
This is our visible representation of the widget! Other DOM
Nodes may by assigned to other properties, usually through the
template system's dojoAttachPoint syntax, but the domNode
property is the canonical "top level" node in widget UI.
To remove the drag capability.
indicates if the grid contains editable cells, default is false
set to true if editable cell encountered during rendering
Override defaults and make the indexed grid view elastic, thus filling available horizontal space.
Message that shows when the grid encounters an error loading
This will escape HTML brackets from the data to prevent HTML from
user-inputted data being rendered with may contain JavaScript and result in
XSS attacks. This is true by default, and it is recommended that it remain
true. Setting this to false will allow data to be displayed in the grid without
filtering, and should be only used if it is known that the data won't contain
malicious scripts. If HTML is needed in grid cells, it is recommended that
you use the formatter function to generate the HTML (the output of
formatter functions is not filtered, even with escapeHTMLInData set to true).
flag modifies vertical scrolling behavior. Defaults to true but set to false for slower
scroll performance but more immediate scrolling feedback
An object to execute format functions within. If not set, the
format functions will execute within the scope of the cell that
has a format function.
Defines a group belonging.
If set to a dijit.Menu, will use this as a context menu for the grid headers.
explicit height of the grid, measured in any valid css unit. This will be populated (and overridden)
if the height: css attribute exists on the source node.
CSS Class specifying icon to use in tab label etc. associated with this pane.
A unique, opaque ID string that can be assigned by users or by the
system. If the developer passes an ID which is known not to be
unique, the specified ID is ignored and the system-generated ID is
used instead.
A css string to use to set our initial width (only used if autoWidth
is true). The first rendering of the grid will be this width, any
resizing of columns, etc will result in the grid switching to
autoWidth mode. Note, this width will override any styling in a
stylesheet or directly on the node.
Number of rows to keep in the rendering cache.
The label to display for a given widget
Rarely used. Overrides the default Dojo locale used to render this widget,
as defined by the [HTML LANG](http://www.w3.org/TR/html401/struct/dirlang.html#adef-lang) attribute.
Value must be among the list of locales specified during by the Dojo bootstrap,
formatted according to [RFC 3066](http://www.ietf.org/rfc/rfc3066.txt) (like en-us).
"none", "left", "right", "bottom", "top", and "client".
See the LayoutContainer description for details on this parameter.
Message that shows while the grid is loading
Specifies a minimum size (in pixels) for this widget when resized by a splitter
Message that shows if the grid has no data - wrap it in a
span with class 'dojoxGridNoData' if you want it to be
styled similar to the loading and error messages
List of nodes that correctly handle click events via native browser support,
and don't need dijit's help
Label of placeholders to search for in the header menu to replace with column toggling
menu items.
"top", "bottom", "leading", "trailing", "left", "right", "center".
See the BorderContainer description for details on this parameter.
Number of rows to display.
If rowHeight is set to a positive number, it will define the height of the rows
in pixels. This can provide a significant performance advantage, since it
eliminates the need to measure row sizes during rendering, which is one
the primary bottlenecks in the DataGrid's performance.
If set to true, will add a row selector view to this grid. If set to a CSS width, will add
a row selector of that width to this grid.
Number of rows to render at a time.
pixel distance a user must scroll vertically to trigger grid scrolling.
Set to true if you want to be able to select the text within the grid.
Is this child currently selected?
Can be specified at initialization time, but then to change selected child use dijit.layout.StackContainer.selectChild
Set the selection mode of grid's Selection. Value must be 'single', 'multiple',
or 'extended'. Default is 'extended'.
Display title of pane as label in TabContainer/AccordionContainer, rather than just using
icon specified in iconClass
Single-click starts editing. Default is double-click
Minimum size (width or height) of a child of a SplitContainer.
The value is relative to other children's sizeShare properties.
Size (width or height) of a child of a SplitContainer.
The value is relative to other children's sizeShare properties.
For example, if there are two children and each has sizeShare=10, then
each takes up 50% of the available space.
A parameter needed by RadioGroupSlide only. An optional paramter to force
the ContentPane to slide in from a set direction. Defaults
to "random", or specify one of "top", "left", "right", "bottom"
to slideFrom top, left, right, or bottom.
Setting spanLabel to true makes the widget take up both the
label and value cells. Defaults to false.
If true, puts a draggable splitter on this widget to resize when used
inside a border container edge region.
pointer to original dom node
HTML style attributes as cssText string or name/value hash
Path to template (HTML file) for this widget relative to dojo.baseUrl.
Deprecated: use templateString with dojo.cache() instead.
A string that represents the widget template. Pre-empts the
templatePath. In builds that have their strings "interned", the
templatePath is converted to an inline templateString, thereby
preventing a synchronous network call.
Use in conjunction with dojo.cache() to load from a file.
HTML title attribute.
For form widgets this specifies a tooltip to display when hovering over
the widget (just like the native HTML title attribute).
For TitlePane or for when this widget is a child of a TabContainer, AccorionContainer,
etc., it's used to specify the tab label, accordion pane title, etc.
a css size value (e.g. "100px")
When this widget's title attribute is used to for a tab label, accordion pane title, etc.,
this specifies the tooltip to appear when the mouse is hovered over that text.
Time, in milliseconds, to delay updates automatically so that multiple
calls to onSet/onNew/onDelete don't keep rerendering the grid. Set
to 0 to immediately cause updates. A higher value will result in
better performance at the expense of responsiveness of the grid.
Should we parse the template to find widgets that might be
declared in markup inside it? False by default.
Path to a blank 1x1 image.
Used by <img> nodes in templates that really get their image via CSS background-image.
A fallback to preserve the 1.0 - 1.3 behavior of children in
templates having their startup called before the parent widget
fires postCreate. Defaults to 'false', causing child widgets to
have their .startup() called immediately before a parent widget
.startup(), but always after the parent .postCreate(). Set to
'true' to re-enable to previous, arguably broken, behavior.