Skip to content

Menu items with icon: before moving into context menu, consider turning off caption (show icon only) #5944

@enver-haase

Description

@enver-haase

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions