mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-13 20:36:52 +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
|
||||
description: Renders the view in panel mode, more info below.
|
||||
type: boolean
|
||||
default: "false"
|
||||
default: false
|
||||
background:
|
||||
required: false
|
||||
description: Style the background using CSS, more info below.
|
||||
@ -50,6 +50,11 @@ views:
|
||||
required: false
|
||||
description: Themes view and cards, more info below.
|
||||
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 %}
|
||||
|
||||
## Options For Badges
|
||||
@ -75,6 +80,17 @@ image:
|
||||
type: string
|
||||
{% 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
|
||||
|
||||
View config:
|
||||
|
Loading…
x
Reference in New Issue
Block a user