modify source model from edit-label-handler #769
-
Hello,
The GLabel text is updating correctly when I console log it. The GLabel gets updated no matter what is in the edit-label-handler’s execute function (even a console.log with nothing else), which is confusing to me. I have a workaround where I extract the updated text and update the source model in the gmodel-factory, but I imagine I should be able to do this in the edit-label-handler. Is it possible to edit the source model from within the edit-label-handler? Am I missing something? Other details:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I've found a solution for this. I went in diagram-module file on the server side and updated the order of the bindings so that the super.configureOperationHandlers(binding) line is last, with my custom handlers coming first like so:
|
Beta Was this translation helpful? Give feedback.
I've found a solution for this. I went in diagram-module file on the server side and updated the order of the bindings so that the super.configureOperationHandlers(binding) line is last, with my custom handlers coming first like so: