From eb9b2aeef26abeecd3cf2cb275387aee48747e8c Mon Sep 17 00:00:00 2001 From: Ian Richardson Date: Wed, 16 Oct 2019 14:56:16 -0500 Subject: [PATCH] Lovelace: Allow hiding tabs (#10458) * Update views.markdown * :ambulance: Fix build error * Update views.markdown * :pencil2: Tweak * :pencil2: Tweak * Update views.markdown * Update views.markdown --- source/lovelace/views.markdown | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/source/lovelace/views.markdown b/source/lovelace/views.markdown index 9e6d4e0f253..1d5f4d1107c 100644 --- a/source/lovelace/views.markdown +++ b/source/lovelace/views.markdown @@ -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: