You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`infoPanel[*].title`| String | no | - |`User Details`| The panel title. |
134
+
|`infoPanel[*].classes`| Array<String>| no | - |`["_User"]`| The classes for which the info panel should be displayed. |
135
+
|`infoPanel[*].cloudCodeFunction`| String | no | - |`getUserDetails`| The Cloud Code Function which received the selected object in the data browser and returns the response to be displayed in the info panel. |
123
136
|`apps.scripts`| Array<Object>| yes |`[]`|`[{ ... }, { ... }]`| The scripts that can be executed for that app. |
124
137
|`apps.scripts.title`| String | no | - |`'Delete User'`| The title that will be displayed in the data browser context menu and the script run confirmation dialog. |
125
138
|`apps.scripts.classes`| Array<String>| no | - |`['_User']`| The classes of Parse Objects for which the scripts can be executed. |
126
139
|`apps.scripts.cloudCodeFunction`| String | no | - |`'deleteUser'`| The name of the Parse Cloud Function to execute. |
127
140
|`apps.scripts.showConfirmationDialog`| Bool | yes |`false`|`true`| Is `true` if a confirmation dialog should be displayed before the script is executed, `false` if the script should be executed immediately. |
128
141
|`apps.scripts.confirmationDialogStyle`| String | yes |`info`|`critical`| The style of the confirmation dialog. Valid values: `info` (blue style), `critical` (red style). |
129
-
|`apps.cloudConfigHistoryLimit`| Integer | yes |`100`|`100`| The number of historic values that should be saved in the Cloud Config change history. Valid values: `0`...`Number.MAX_SAFE_INTEGER`. |
142
+
|`apps.cloudConfigHistoryLimit`| Integer | yes |`100`|`100`| The number of historic values that should be saved in the Cloud Config change history. Valid values: `0`...`Number.MAX_SAFE_INTEGER`.|
130
143
131
144
### File
132
145
@@ -837,6 +850,237 @@ A relational filter allows you filter all users who:
837
850
838
851
To apply such a filter, simply go to the `_User` class and add the two required filter conditions with the `Purchase` and `Payment` classes.
839
852
853
+
### Info Panel
854
+
855
+
▶️ *Core > Browser > Show Panel / Hide Panel*
856
+
857
+
The data browser offers an info panel that can display information related to the currently selected object in the data browser table. The info panel is made visible by clicking on the menu button *Show Panel* in the top right corner when browsing a class for which the info panel is configured in the dashboard options.
858
+
859
+
The following example dashboard configuration shows an info panel for the `_User` class with the title `User Details`, by calling the Cloud Code Function `getUserDetails` and displaying the returned response.
860
+
861
+
```json
862
+
"apps": [
863
+
{
864
+
"infoPanel": [
865
+
{
866
+
"title": "User Details",
867
+
"classes": ["_User"],
868
+
"cloudCodeFunction": "getUserDetails"
869
+
}
870
+
]
871
+
}
872
+
]
873
+
```
874
+
875
+
The Cloud Code Function receives the selected object in the payload and returns a response that can include various items.
876
+
877
+
#### Segments
878
+
879
+
The info panel can contain multiple segments to display different groups of information.
|`segments`| Array | No | An ordered array of segments, where each segment represents a distinct group of items to display. |
884
+
|`segments[i].title`| String | No | The title of the segment that will be displayed. |
885
+
|`segments[i].items`| Array | No | An ordered array of items within the segment. Each item can be of different types, such as text, key-value pairs, tables, images, etc. |
886
+
887
+
Example:
888
+
889
+
```json
890
+
{
891
+
"panel": {
892
+
"segments": [
893
+
{
894
+
"title": "Purchases",
895
+
"items": [
896
+
{
897
+
"type": "text",
898
+
"text": "This user has a high churn risk!"
899
+
}
900
+
]
901
+
}
902
+
]
903
+
}
904
+
}
905
+
```
906
+
907
+
The items array can include various types of content such as text, key-value pairs, tables, images, videos, audios, and buttons. Each type offers a different way to display information within the info panel, allowing for a customizable and rich user experience. Below is a detailed explanation of each type.
0 commit comments