Way of checking if a node is selected #24
-
|
Hello! I'd like to ask if there's a way (or can be implemented) to easily check if a specific node is selected, since the "selectable" option exist in the node options. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
|
There's multiple ways to discern if a node is selected. Do you need a more specific example for it? :) |
Beta Was this translation helpful? Give feedback.
-
|
Somehow adding On other hand event |
Beta Was this translation helpful? Give feedback.
There's multiple ways to discern if a node is selected.
A selected node will have the
.selectedclass applied to it.You can also check the Store state and check the stored nodes whether
selectedis set totrue.Do you need a more specific example for it? :)