-
Notifications
You must be signed in to change notification settings - Fork 22
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
Feel Popup event support #287
Conversation
* `feelPopup._open` * `feelPopup.opened` * `feelPopup._close` * `feelPopup.closed` * `feelPopup._isOpen`
5f3c00a
to
b7d368d
Compare
return isOpen(); | ||
}; | ||
|
||
eventBus.on('feelPopup._close', handleClose); |
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.
If we want to keep backwards compatibility then we'd need to make eventBus
optional.
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.
This looks great. One last question: Do we need to make eventBus
an optional dependency at the core?
I liked the null-object pattern usage here, so I used that via 0abe5d7. 🏆 I believe that is okay, as |
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.
Great stuff.
I'd take over releasing these bits and open up bpmn-io/bpmn-js-properties-panel#975 if that's okay to you. |
That's great, thank you :) |
Related to bpmn-io/bpmn-js-properties-panel#974
This provides the capability to hook into the feel popup lifecycle as
feelPopup.opened
feelPopup.closed
feelPopup._open
feelPopup._close
feelPopup._isOpen
Furthermore, this adds a feature service that integrators can use to interact with the popup. Cf. to this example on how to use it. I didn't add particular test coverage for this module in this project similar to
debounceInput
as I saw we do not have a proper didi-like test setup in the core framework.Happy to receive your feedback ❤️ @bpmn-io/modeling-dev @bpmn-io/hto-dev