Modify the (ok) configuration of a developing node

#1

How to program the OK button of configuration of a node (in development), to validate some components that I need to validate before it is executed.

0 Likes

#2

When you click on OK (or Apply), the #configure() method of the NodeModel is called, so you can almost certainly (without knowing the details of what you want to do!) do what you want there.

Steve

3 Likes

#3

You can also override the saveAdditionalSettings() method in the NodeDialog, if you want to perform your validation before the settings are saved to the node. By throwing an exception in that method, you can prevent a user from configuring a node with an illegal value.

best,
Gabriel

2 Likes

#4

Thank you very much, I tried it and I think it is the best option.
Taday

0 Likes