File tree Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -172,21 +172,25 @@ You need to notify the designer when your editor changes the definition. To do i
172172const editorsConfiguration = {
173173 globalEditorProvider : (definition , globalContext ) => {
174174 // ...
175- definition .properties [' a' ] = newA;
176- definition .notifyPropertiesChanged ();
175+ input .addEventListener (' changed' , () => {
176+ definition .properties [' a' ] = newA;
177+ globalContext .notifyPropertiesChanged ();
178+ });
177179 // ...
178180 },
179181
180182 stepEditorProvider : (step , stepContext ) => {
181183 // ...
182- step .name = newName;
183- stepContext .notifyNameChanged ();
184+ input .addEventListener (' changed' , () => {
185+ step .name = newName;
186+ stepContext .notifyNameChanged ();
184187
185- step .properties [' x' ] = newX;
186- stepContext .notifyPropertiesChanged ();
188+ step .properties [' x' ] = newX;
189+ stepContext .notifyPropertiesChanged ();
187190
188- step .branches [' newBranch' ] = [];
189- stepContext .notifyChildrenChanged ();
191+ step .branches [' newBranch' ] = [];
192+ stepContext .notifyChildrenChanged ();
193+ });
190194 // ...
191195 }
192196}
You can’t perform that action at this time.
0 commit comments