mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-17 06:16:50 +00:00
Lovelace: Allow hiding tabs (#10458)
* Update views.markdown * 🚑 Fix build error * Update views.markdown * ✏️ Tweak * ✏️ Tweak * Update views.markdown * Update views.markdown
This commit is contained in:
parent
0c16f873ac
commit
eb9b2aeef2
@ -41,7 +41,7 @@ views:
|
|||||||
required: false
|
required: false
|
||||||
description: Renders the view in panel mode, more info below.
|
description: Renders the view in panel mode, more info below.
|
||||||
type: boolean
|
type: boolean
|
||||||
default: "false"
|
default: false
|
||||||
background:
|
background:
|
||||||
required: false
|
required: false
|
||||||
description: Style the background using CSS, more info below.
|
description: Style the background using CSS, more info below.
|
||||||
@ -50,6 +50,11 @@ views:
|
|||||||
required: false
|
required: false
|
||||||
description: Themes view and cards, more info below.
|
description: Themes view and cards, more info below.
|
||||||
type: string
|
type: string
|
||||||
|
visible:
|
||||||
|
required: false
|
||||||
|
description: "Hide/show the view tab from all users or a list of individual `visible` objects."
|
||||||
|
type: [boolean, list]
|
||||||
|
default: true
|
||||||
{% endconfiguration %}
|
{% endconfiguration %}
|
||||||
|
|
||||||
## Options For Badges
|
## Options For Badges
|
||||||
@ -75,6 +80,17 @@ image:
|
|||||||
type: string
|
type: string
|
||||||
{% endconfiguration %}
|
{% endconfiguration %}
|
||||||
|
|
||||||
|
## Options For Visible
|
||||||
|
|
||||||
|
If you define `visible` as objects instead of a boolean to specify conditions for displaying the view tab:
|
||||||
|
|
||||||
|
{% configuration badges %}
|
||||||
|
user:
|
||||||
|
required: true
|
||||||
|
description: User id that can see the view tab.
|
||||||
|
type: string
|
||||||
|
{% endconfiguration %}
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
View config:
|
View config:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user