Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Card visibility: fix procedure #33097

Merged
merged 1 commit into from
Jun 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the trailing space at the end of line 77.

-  ![Add to Dashboard button on the device page](/images/dashboards/add_card_from_device_page_02.png) 
+  ![Add to Dashboard button on the device page](/images/dashboards/add_card_from_device_page_02.png)
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.

Suggested change
![Add to Dashboard button on the device page](/images/dashboards/add_card_from_device_page_02.png)
![Add to Dashboard button on the device page](/images/dashboards/add_card_from_device_page_02.png)
Tools
Markdownlint

77-77: Expected: 0 or 2; Actual: 1 (MD009, no-trailing-spaces)
Trailing spaces

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.