@itrocks/tree-list
v0.1.1
Published
Displays recursive object hierarchies in list columns
Maintainers
Readme
tree-list
Displays recursive object hierarchies in list columns.
Usage
Install @itrocks/tree-list and activate it in your application. Dependency configuration
Declare and persist a tree using @itrocks/tree-property. Add its
property to a list using the column selector. The parent field remains an
ordinary column and can be displayed separately. Use the usual @List declaration to set the initial columns
for the class.
Each tree column draws its hierarchy beside each object's @Representative text in the current list order.
Click its heading to sort by the tree. Clicking again reverses the entire order, putting descendants before
their parents. When sorting by another column, a child connects to its direct parent if it is in the row
immediately above or below.
Filtering a tree column searches the owning object's @Representative fields. A branch links a child to its
immediate parent when both rows are loaded. Loading more rows can complete branches across the boundary between batches.
