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