-
Notifications
You must be signed in to change notification settings - Fork 190
feat: add HasEnabled::bindEnabled #23107
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
Conversation
Adds void bindEnabled(Signal<Boolean>) method to HasEnabled and Element. Introduces new Node Feature SignalBindingFeature that stores signal and registration in a Map. Only bindEnabled initializes the feature to keep memory consumption optimal when binding is not used. Fixes: #23035
flow-server/src/test/java/com/vaadin/flow/dom/ElementBindEnabledTest.java
Show resolved
Hide resolved
…edTest.java Co-authored-by: Anton Platonov <[email protected]>
heruan
left a comment
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.
The new binding and enabling logic meet the requirements, test coverage is thorough and documentation is clear.
|
|
This ticket/PR has been released with Vaadin 25.1.0-alpha1. |



Adds void bindEnabled(Signal) method to HasEnabled and Element. Introduces new Node Feature SignalBindingFeature that stores signal and registration in a Map. Only bindEnabled initializes the feature to keep memory consumption optimal when binding is not used.
Fixes: #23035