-
Notifications
You must be signed in to change notification settings - Fork 419
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve entries apis: Context Pad, Palette, Popup Menu #431
Conversation
96651f3
to
065ddca
Compare
There can be multiple providers and each of them can add, modify and remove entries in the order of registration.
065ddca
to
0bfe1c1
Compare
c0121e5
to
2d74917
Compare
This can be tested with https://github.com/barmac/bpmn-js-reworked-replace-menu |
2d74917
to
e1fece3
Compare
@nikku I updated the PR in accordance with the comments. |
This allows us to do the following: ``` const fooEvent = eventBus.createEvent({ type: 'foo' }); eventBus.fire(fooEvent); ``` I assume this would already work, but it did not until now.
I've sketched how to register providers using the eventBus here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's move to an eventBus based provider registration as discussed, cf. 59681ee
@nikku Ready for another round. |
Closes #428
Note: This breaks multiple test cases in
bpmn-js
, but all of the failures base on checking the internals. I'll prepare a fix for that.