Skip to content

Commit c4c7c3a

Browse files
committed
readme.
1 parent 6eef374 commit c4c7c3a

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

README.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -172,21 +172,25 @@ You need to notify the designer when your editor changes the definition. To do i
172172
const 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
}

0 commit comments

Comments
 (0)