Selection overview
A set of API that you can use when working with selection of the Diagram items. The API is available both in the diagram and in the editor.
Methods
Name | Description |
---|
add() | Selects the specified item |
getId() | Returns the id of the selected item |
getItem() | Returns the object of the selected item |
getSubId() | Returns the subId (if any) of the selected item |
remove() | Unselects a previously selected item |
Events
Name | Description |
---|
afterSelect | Fires after selecting an item |
afterUnSelect | Fires after unselecting an item |
beforeSelect | Fires on selecting an item, but before the item is really selected |
beforeUnSelect | Fires on unselecting an item, but before the item is really unselected |