-
Notifications
You must be signed in to change notification settings - Fork 191
Description
What is needed:
- Add
public void bindVisible(Signal<Boolean> visibleSignal)toElement -
Component::bindVisibledelegates togetElement().bindVisible(visibleSignal) -
bindVisiblehas a similar contract as forElement.bindProperty(...):-
bindVisible(null)unbinds; - calling
setVisibleor a secondbindVisiblewhile a binding is active throwsBindingActiveException - binding is only active while attached;
-
nullvalue behaves asfalse.
-
- Memory-optimal feature storage, similar to
TextBindingFeatureas the visibility has a special handling in the framework;- A lightweight
VisibilityBindingFeatureon the node to hold an optionalRegistrationandSignal<Boolean>reference. Lazily instantiation only whenbindVisibleis called to avoid overhead for typical components with no bindings. - Provide
hasBinding(),setBinding(registration, signal), andremoveBinding()(disposing registration), similar toTextBindingFeatureusage inbindText. - Uses
ElementEffect.bind()to actually establish a binding.
- A lightweight
Reactions are currently unavailable
Metadata
Metadata
Assignees
Type
Projects
Status
Done
Status
Done / Pending Release