Skip to main content

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.


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


afterSelectFires after selecting an item
afterUnSelectFires after unselecting an item
beforeSelectFires on selecting an item, but before the item is really selected
beforeUnSelectFires on unselecting an item, but before the item is really unselected