Skip to main content

Class: SelectionState

Constructors

constructor

new SelectionState()

Accessors

selectedItems

get selectedItems(): SelectableItem[]

Returns

SelectableItem[]


get selectedLinks(): LinkState[]

Returns

LinkState[]


selectedNodes

get selectedNodes(): NodeState[]

Returns

NodeState[]

Methods

select

select(item, unselectOther?): boolean

Parameters

NameTypeDefault value
itemSelectableItemundefined
unselectOtherbooleanfalse

Returns

boolean


switch

switch(item, unselectOtherOnSelection?): void

Parameters

NameTypeDefault value
itemSelectableItemundefined
unselectOtherOnSelectionbooleanfalse

Returns

void


unselect

unselect(item): boolean

Parameters

NameType
itemSelectableItem

Returns

boolean


unselectAll

unselectAll(): void

Returns

void


unselectItems

unselectItems(itemsToClear): void

Parameters

NameType
itemsToClearreadonly SelectableItem[]

Returns

void