Home > blockly > ISelectable
ISelectable interface
The interface for an object that is selectable.
Implementations are generally expected to use their implementations of onNodeFocus() and onNodeBlur() to call setSelected() with themselves and null, respectively, in order to ensure that selections are correctly updated and the selection change event is fired.
Signature:
export interface ISelectable extends IFocusableNode
Extends: IFocusableNode
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
| id | string | ||
| workspace | Workspace |
Methods
| Method | Description |
|---|---|
| select() | Select this. Highlight it visually. |
| unselect() | Unselect this. Unhighlight it visually. |