porscheinformatik/material-addons

feat: Toolbar: Toggle to show Toolbar Actions in burger menu on desktop

Laess3r opened this issue · 0 comments

Feature request

The toolbar actions are confusing if many actions are present in desktop view. The user needs to hover over the actions in order to see it's description.

The idea: Add a property to the toolbar, to always enable 'mobile mode' which uses a burger menu.

Description

Current view in desktop mode. A lot of actions might confuse the users.

image

Possible Solution

Solution in desktop mode:

A new property in the toolbar always enables the mobile mode:
this.toolbarService.setToolbarActionsAlwaysAsMenu(true);

Outcome:
The first action will always stay present. This is useful for help-actions etc. The other actions are then moved in a burger menu:

image

image

If an action has a badge, the burger menu will also get an indicating badge:

image

image