You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Daniel Gimenez edited this page Jul 26, 2013
·
17 revisions
This is another tree view widget for jQuery. It is differentiated from others by its flexibility creating a tree from a data source, and its intent on keeping the number of DOM objects to a minimum by removing invisible nodes. It is best for very large, data driven trees.
Members
Object Literals
node
id: optional. If not assigned, one will be created.
value: either a primitive type, or if it is an object keys will attempt to match elements in the data template that have an attribute with the key (replacing the attribute value), or an element with the attribute data-tree-key equaling the key (replacing the attribute's html).
Options
All options have defaults set.
dataTemplate: a single jQuery element to be reused when displaying a node's text portion.
handleTemplate: a signle jQuery element to be reused when displaying a parent node's handle.
nodeTransform: a function with one argument (function (data)). This function will use data and transform it into a node type expected by the tree.
transformGetChildren: a function with one argument (function (data)). This function will return an array of child nodes derived from data.