Settings for selecting nodes #1388
-
Hello. I need to highlight nodes from the application side. For example, select all nodes when a hotkey is pressed. But the selected nodes via selection area look different than the selected nodes via adding selected attribute (no blue square). Is there any possibility to apply the selection square to the manually selected nodes, or not to draw blue square after selection with selection area - but without crutches like deep styles rewriting? Thanks for your attention. |
Beta Was this translation helpful? Give feedback.
Answered by
bcakmakoglu
Apr 29, 2024
Replies: 1 comment
-
You can force the selection box by setting const { nodesSelectionActive, addSelectedNodes } = useVueFlow()
function selectNodes(nodes) {
addSelectedNodes(nodes)
nodesSelectionActive.value = true
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
bcakmakoglu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can force the selection box by setting
nodesSelectionActive
totrue
.Here's an example.