dijit.tree.ForestStoreModel
dojo.require("dijit.Tree");
defined in dijit/Tree.js
Use this class to wrap a dojo.store, making all the items matching the specified query appear as children of a fabricated "root item". If no query is specified then all the items returned by fetch() on the underlying store become children of the root item. It allows dijit.Tree to assume a single root item, even if the store doesn't have one.
Usage
function (params) (view source)
parameter | type | description |
---|---|---|
params |
Examples
Example 1
{type:'continent'}
FunctionsBack to top

Defined by dijit.tree.TreeStoreModel
Overrides dijit.tree.TreeStoreModel
Calls onComplete() with array of child items of given parent item, all loaded.

Overrides dijit.tree.TreeStoreModel

Defined by dijit.tree.TreeStoreModel
Calls onItem with the root item for the tree, possibly a fabricated item. Calls onError on error.

Overrides dijit.tree.TreeStoreModel
Tells if an item has or may have children. Implementing logic here avoids showing +/- expando icon for nodes that we know don't have children. (For efficiency reasons we may not want to check if an element actually has children until user clicks the expando node)
Overrides dijit.tree.TreeStoreModel
Creates a new item. See dojo.data.api.Write for details on args. Used in drag & drop when item from external source dropped onto tree.

Called when item added to root of tree; user must override to modify the item so that it matches the query for top level items

Defined by dijit.tree.TreeStoreModel
Callback whenever an item has changed, so that Tree can update the label, icon, etc. Note that changes to an item's children or parent(s) will trigger an onChildrenChange() so you can ignore those changes here.

Defined by dijit.tree.TreeStoreModel
Callback to do notifications about new, updated, or deleted items.

Called when item removed from root of tree; user must override to modify the item so it doesn't match the query for top level items

User can override this method to modify a new element that's being added to the root of the tree, for example to add a flag like root=true
Overrides dijit.tree.TreeStoreModel
Move or copy an item from one parent item to another. Used in drag & drop
Overrides dijit.tree.TreeStoreModel
handler for delete notifications from underlying store
Overrides dijit.tree.TreeStoreModel
handler for when new items appear in the store.
Defined by dijit.tree.TreeStoreModel
set data event on an item in the store
PropertiesBack to top
Defined by dijit.tree.TreeStoreModel
one ore more attributes that holds children of a tree node
Defined by dijit.tree.TreeStoreModel
Label of fabricated root item
Defined by dijit.tree.TreeStoreModel