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:
Ian Richardson 2019-10-16 14:56:16 -05:00 committed by Franck Nijhof
parent 0c16f873ac
commit eb9b2aeef2

View File

@ -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: