SelectionManager

Description

This module dispatches these events:

  • selectionChanged: (selectedModels, selectedViews)

Functions Summary

Functions

Public API

deselectAll

Deselect all elements.

Public API

getSelected

Return the first selected model element.

Public API

getSelectedModels

Return selected model elements.

Returns: Array.<Model>
Array of selected model elements.
Public API

getSelectedViews

Return selected view elements.

Returns: Array.<View>
Array of selected view elements.
Public API

select

Select elements (models and views)

models Array.<Model>
Model elements to be selected.
views Array.<View>
View elements to be selected.
Public API

selectModel

Select a model element

model Model
Model element to be selected.
Public API

selectViews

Select view elements

views Array.<View>
Array of view elements to be selected.