home-assistant / ui-schema

A schema to define a user interface for Home Assistant.
Apache License 2.0
41 stars 6 forks source link

Feature Request: Sub navigations for Lovelace #235

Closed ghost closed 5 years ago

ghost commented 5 years ago

@h0jeZvgoxFepBQ2C commented on Jan 30, 2019, 8:48 AM UTC:

Home Assistant release with the issue:

All releases

Description of problem:

It would be great if you could add a subnavigation menu to lovelace, so it's much easier to seperate the views.

Do you think this is possible?

This issue was moved by iantrich from home-assistant/home-assistant-polymer#2632.

ghost commented 5 years ago

@iantrich commented on Jan 30, 2019, 1:00 PM UTC:

Can you elaborate on this?

ghost commented 5 years ago

@h0jeZvgoxFepBQ2C commented on Jan 30, 2019, 1:37 PM UTC:

I mean a subnavigation for the views, which mans that there is not only one visible navigation (if subnavigation is defined), but 2 - one for the main navigation points and one subnavigation, which has the corresponding navigation points for the clicked main navigation point.

This would improve the user experience, if you have many views (so you dont have to scroll horizontally so often, since you can seperate the views into main/sub navigation points).

See this mockup:

bildschirmfoto 2019-01-30 um 14 22 24

thomasloven commented 5 years ago

This custom card can approximate that, using the hash option.

iantrich commented 5 years ago

Duplicate of https://github.com/home-assistant/ui-schema/issues/198

h0jeZvgoxFepBQ2C commented 5 years ago

@iantrich Actually this is not a duplicate, your mentioned issue describes the main navigation bar to wrap to multiple lines - but all navigation points stay the same.

This issue is requesting a subnavigation which can have different sub navigation points on each main navigation point.

h0jeZvgoxFepBQ2C commented 5 years ago

and thanks @thomasloven , but this is not what I request. Selecting a drop down each time is a pretty poor user experience on phones and no replacement for a sub navigation which is directly clickable after clicking the main navigation point. But for other use cases - really cool card!