TreeController source

Properties

allExpanded source

Whether every node eligible for expansion is expanded.

This is a readable and writable property. Setting to true causes all nodes to be expanded.

childrenPath source

An FRB expression, that evaluated against content or any of its children, produces an array of that content's children. By default, this is simply "children", but for an alternate example, a binary tree would have children [left, right], except that said tree would need to have no children if left and right were both null, so (left ?? []).concat(right ?? []), to avoid infinite recursion.

This property must be set before content.

constructor source

Creates a tree controller.

content source

The input of a tree controller, an object to serve at the root of the tree.

initiallyExpanded source

Whether nodes of the tree are initially expanded.

This property must be set before content. If content has already set, use allExpanded.

iterations source

The product of a tree controller, an array of tree controller nodes corresponding to each branch of the content for which every parent node is expanded.

Node :TreeControllerNode source

noneExpanded source

Whether any nodes are collapsed.

This is a readable and writable property. Setting to true causes all nodes to be collapsed.

root source

A by-product of the tree controller, the root node of the tree for the current content.

Generated from a4679af

comments powered by Disqus

More help?

Can't find what you are looking for? Get in touch, we're more than happy in helping answer your questions.