VirtualTreeDataView

matrix. VirtualTreeDataView

The VirtualTreeDataView represents a view of a tree. The view will contain a fixed number of elements (ports and groups). It can be scrolled within the full tree.

Constructor

new VirtualTreeDataView(group, amount, filterFunction, sortFunction, subscribeSortDependencies)

Source:

Constructor.

Parameters:
Name Type Description
group GroupData

The group this view represents. Note that only the children of this group but not this group itself will be part of the view.

amount number

The amount of elements to view.

filterFunction function

The function used to filter the tree.

sortFunction function

The function used to sort nodes within each level of the tree.

subscribeSortDependencies function

This function, if specified will be called to subscribe to changes which influence the sort order of a node.

Members

group

Source:

Return the corresponding root group.

matrix

Source:

Return the corresponding matrix object.

Methods

subscribeSize()

Source:

Emits the size of the list.

subscribeStartIndexChanged()

Source:

Triggers when the startIndex changed but the view remained the same. This may happen when data is being removed which is entirely before the current view.

triggerSort()

Source:

Will sort the list again according to the sort function.