no doc
Flags : Cached (Note this is uncached)
Expression : "Tree"
no doc
Flags : Cached, Parameter, Spec (Note this is uncached)
Expression : false
no doc
Flags : Cached, Parameter, Spec (Note this is uncached)
Expression : false
no doc
Flags : Cached, Parameter, Spec (Note this is uncached)
Expression : ""
no doc
Flags : Cached, Parameter, Spec (Note this is uncached)
Expression : []
If tree content is supplied on demand (lazy load, via the rootExpression
), this rule can be used to determine the loaded data freshness. Initialize it with any value (e.g. with datetime when the root level nodes are obtained first time, or just any unique string), then change it everytime when the whole tree is no longer valid. Custom UI will clean whole tree and re-load the top level again on each change of the rootNodesVersion
.
Flags : Cached, Parameter, Spec (Note this is uncached)
Expression : ""
no doc
Flags : Cached, Parameter, Spec (Note this is uncached)
Expression : this.refChain
This is the default binding target for tree selection. If selectionMode is 'single', the selectedNode will be a string containing a selected node refChain. If selectionMode is 'multiple' or 'checkbox', the selectedNode will be an array of selected refChains.
Flags : Cached, Parameter (Note this is uncached)
Expression : ""
no doc
Flags : Cached, Parameter, Spec (Note this is uncached)
Expression : this
no doc
Flags : Cached, Parameter, Spec (Note this is uncached)
Expression : "selectedNode"
valid values are: 'single', 'multiple' and 'checkbox'.
Flags : Cached, Parameter, Spec (Note this is uncached)
Expression : "single"
UITree (d.1.0)
Mixins: UIControlMixin
UITree provides two ways of populating the tree, Instant and Delayed.
Instant
*UITree** has a rootNodes array rule. This should evaluate to an array of UITreeNode objects. This will populate the UITree without additional roundtrips to the server.
Delayed
*UITree** has rootRefchain and rootExpression rules. when the UITree is created, the client will evaluate rootExpression in the rootRefchain model context. The expression must return an array of POJOs in the same form as used in the Instant Data method. Custom UI will populate root level of the tree (one or more nodes) with the data retrieved.
UITreeNode Structure
{ "title": "Name of this Node", "isExpandable": true|false, "nodes": [], "nodesRefChain": "refChain to the model having nodesExpression", "nodesExpression": "expression returning array of UITreeNodes" }
These objects can be collected from UITreeNodeMixin models.
There are two alternate ways to specify a tree:
By supplying nodes directly. If nodes is supplied, nodesRefChain, nodesExpression, and isExpandable will be ignored.
By supplying nodesRefChain and nodesExpression. In this case, if isExpandable is true, the system will request the next level from the server, by using the nodesRefChain and nodesExpression values.
You can combine 'Instant' and 'Delayed' approaches. The above controls work at any level.