Describe your motivation
Customer has following request:
If right-hand component does not fit into menu bar, it is moved into the context menu.
What they would like:
IF the right-hand menu item is built from a component
and
IF this component is a Button
and
IF this button has both Icon and Caption
THEN
hide the caption and try fitting this into menu bar.
OK -> then stop
Still does not fit -> continue as usual
They are wondering if maybe it would be easier (and more generic) to throw an event to handle that themselves, in server-side Java; so that they can handle the situation when the available width space is low / exhausted so they can shrink themselves programmatically before the automatic move to the context menu occurs.
Describe the solution you'd like
Event version (as outlined above) preferred if viable.
Describe alternatives you've considered
Implement the use-case all in the core or an add-on MenuBar2 component.
Additional context
Customer: contact me for names.