ProtectedeventOptionalrequestProtectedaddRegister event listener with automatic binding and cleanup tracking
The eventbus to register with
Name of the event to listen for
Event handler function (will be bound to this controller)
ProtectedattachRegister multiple event listeners at once
The eventbus to register with
Array of {eventName, handler} pairs
Clean up all tracked event listeners Prevents memory leaks by removing all registered handlers
This controller attaches to the given selected element and renders the text associated with the given label id in it.
The controller also listen for the
LANGUAGE_CHANGEevent and re-renders the text with the new language after such an event.