From 4a135b0c8703ef43c2af09042a9ae4bafc27784d Mon Sep 17 00:00:00 2001 From: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com> Date: Mon, 10 Feb 2025 15:33:08 +0100 Subject: [PATCH] badge visibility: add link to available conditions (#37396) --- source/_dashboards/conditional.markdown | 4 ++-- source/dashboards/badges.markdown | 3 ++- source/dashboards/cards.markdown | 9 +++++---- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/source/_dashboards/conditional.markdown b/source/_dashboards/conditional.markdown index 7f6e891ffbb..c3db5117a0f 100644 --- a/source/_dashboards/conditional.markdown +++ b/source/_dashboards/conditional.markdown @@ -6,7 +6,7 @@ description: The Conditional card displays another card based on conditions. related: - docs: /dashboards/cards/ title: Dashboard cards - - docs: /dashboards/cards/#showing-or-hiding-a-card-conditionally + - docs: /dashboards/cards/#showing-or-hiding-a-card-or-badge-conditionally title: Conditional settings on the card's visibility tab --- @@ -17,7 +17,7 @@ The conditional card displays another card based on conditions. {% include dashboard/edit_dashboard.md %} Note that while editing the dashboard, the card will always be shown, so be sure to exit editing mode to test the conditions. -The conditional card can still be used. However, it is now possible to define a setting to show or hide a card conditionally directly on each card type, on its [Visibility](/dashboards/cards/#showing-or-hiding-a-card-conditionally) tab. +The conditional card can still be used. However, it is now possible to define a setting to show or hide a card conditionally directly on each card type, on its [Visibility](/dashboards/cards/#showing-or-hiding-a-card-or-badge-conditionally) tab. Most options for this card can be configured via the user interface. diff --git a/source/dashboards/badges.markdown b/source/dashboards/badges.markdown index 13a2673b1a9..3b775ea76f3 100644 --- a/source/dashboards/badges.markdown +++ b/source/dashboards/badges.markdown @@ -27,7 +27,8 @@ Badges are widgets that sit at the top of a panel, above all the cards.  7. Under **Interactions**, you can define the tap behavior. -8. If you want this badge to be visible only to specific users or under a certain condition, open the **Visibility** tab to [define those conditions](/dashboards/cards/#showing-or-hiding-a-card-conditionally). +8. If you want this badge to be visible only to specific users or under a certain condition, open the **Visibility** tab to [define those conditions](/dashboards/cards/#showing-or-hiding-a-card-or-badge-conditionally). + - The [available conditions](/dashboards/conditional/#conditions-options) are the same as the ones for the conditional card. 9. Select **Save**.
diff --git a/source/dashboards/cards.markdown b/source/dashboards/cards.markdown index 77ff05d27eb..bfb3acccb34 100644 --- a/source/dashboards/cards.markdown +++ b/source/dashboards/cards.markdown @@ -53,7 +53,7 @@ A card can be added to a dashboard directly [from the view](#to-add-a-card-from- - Then, select **Continue**.  -3. If you want this card to be visible only to specific users or under a certain condition, you can [define those conditions](#showing-or-hiding-a-card-conditionally). +3. If you want this card to be visible only to specific users or under a certain condition, you can [define those conditions](#showing-or-hiding-a-card-or-badge-conditionally). 4. If you are adding this card to a [sections view](/dashboards/sections/), on the **Layout** tab, you can [resize the card](#resizing-a-card). 5. If you like, define [card actions, features, header and footer widgets](#card-actions-features-header-and-footer-widgets). - Not all cards support these elements. Refer to the documentation of the specific card type. @@ -78,7 +78,7 @@ This method is useful if you are on the **Device** page and want to create a car  5. To edit the card configuration, open the view to which you added the card. - Select **Edit card**. -6. If you want this card to be visible only to specific users or under a certain condition, you can [define those conditions](#showing-or-hiding-a-card-conditionally). +6. If you want this card to be visible only to specific users or under a certain condition, you can [define those conditions](#showing-or-hiding-a-card-or-badge-conditionally). 7. If you are adding this card to a [sections view](/dashboards/sections/), on the **Layout** tab, you can [resize the card](#resizing-a-card). 8. If you like, define [card actions, features, header and footer widgets](#card-actions-features-header-and-footer-widgets). @@ -88,10 +88,11 @@ This method is useful if you are on the **Device** page and want to create a car You can choose to show or hide certain cards or [badges](/dashboards/badges/) based on different conditions. The [available conditions](/dashboards/conditional/#card-conditions) are the same as the ones for the conditional card. -1. On the **Visibility** tab, select **Add condition**. - - Don't see a **Visibility** tab? +1. On the **Visibility** tab, select **Add condition**./dashboards/conditional/#conditions-options + - **Troubleshooting**: Don't see a **Visibility** tab? - It is not available inside nested cards: vertical stack, horizontal stack, and grid card 2. Select the type of condition, and enter the parameters. + - The [available conditions](/dashboards/conditional/#conditions-options) are the same as the ones for the conditional card. - If you define multiple conditions, the section is only shown when all conditions are met. - If you did not define any conditions, the section is always shown, to all users. 3. Select **Save**.