Skip to content

Commit

Permalink
Card visibility: fix procedure (#33097)
Browse files Browse the repository at this point in the history
  • Loading branch information
c0ffeeca7 authored and frenck committed Jun 5, 2024
1 parent b83c9ec commit 6fbb2a4
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 16 deletions.
35 changes: 19 additions & 16 deletions source/dashboards/cards.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,7 @@ A card can be added to a dashboard directly [from the view](#to-add-a-card-from-
- Then, select **Continue**.
![Screenshot add cards by entity](/images/dashboards/dashboard_add-by-entity_02.png)

3. If you want this card to be visible only to specific users or under a certain condition, you can define those conditions:
- On the **Visibility** tab, select **Add condition**.
- Select the type of condition, and enter the parameters.
- 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. If you want this card to be visible only to specific users or under a certain condition, you can [define those conditions](#show-or-hide-a-card-conditionally).
4. 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.
5. Select **Add to dashboard**.
Expand All @@ -70,23 +66,30 @@ This method is useful if you are on the **Device** page and want to create a car
1. Go to **{% my integrations title="Settings > Devices & services" %}**.
2. On the integration card of interest, select **Devices**.
- If there are multiple devices, select the device from the list.

3. If you want this card to be visible only to specific users or under a certain condition, you can define those conditions:
- On the **Visibility** tab, select **Add condition**.
- Select the type of condition, and enter the parameters.
- 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.
4. If you like, define [card actions, features, header and footer widgets](#card-actions-features-header-and-footer-widgets).
3. Add the card:
- Find the area of interest, for example **Sensors**, or **Events** and select **Add to Dashboard**.
![Add to Dashboard button on the device page](/images/dashboards/add_card_from_device_page.png)
4. In the dialog, select the target dashboard and if you have multiple views, select the view.
- Select **Next**.
- If you like the card proposal, select **Add to dashboard**.
- If you want to change the card, **Pick different card** and choose your card type.
- **Result**: The card is added to the selected view.
![Add to Dashboard button on the device page](/images/dashboards/add_card_from_device_page_02.png)
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](#show-or-hide-a-card-conditionally).

7. 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.

5. In the **Controls** section, select **Add to Dashboard**.
![Add to Dashboard button on the device page](/images/blog/2024-03-dashboard-chapter-1/sections-add-from-device-page.jpg)

## Show or hide a card conditionally

You can choose to show or hide certain cards based on different conditions. The [available conditions](/dashboards/conditional/#card-conditions) are the same as the ones for the conditional card.

To edit the card visibility conditions, open the card editor, select the **Visibility** tab and add your conditions.
1. On the **Visibility** tab, select **Add condition**.
2. Select the type of condition, and enter the parameters.
- 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.

## Card actions, features, header and footer widgets

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6fbb2a4

Please sign in to comment.