Перейти к основному содержанию

Interface: MetaTreeContext

Меньше 1 минуты

Interface: MetaTreeContext

Ui.MetaTreeContext

Context object for MetaTree UI component

Methods

clearSelection

clearSelection(): void

Unselect tree nodes.

Returns

void


collapseAll

collapseAll(): void

Collapse all tree nodes.

Returns

void


expandAll

expandAll(): void

Expand all tree nodes.

Returns

void


selectEls

selectEls(elNums, forceExpand?): void

Select element node inside tree by elNum.

Parameters

NameTypeDescription
elNumsnumber | number[]Element number(numbers).
forceExpand?booleanExpand nodes on path to selected element or not.

Returns

void


setCheckboxSelection

setCheckboxSelection(checkboxSelectionMode): void

Enable or disable checkbox selection mode for tree nodes.

Parameters

NameTypeDescription
checkboxSelectionModebooleancheckbox selection mode flag.

Returns

void