Skip to content

Commit 4067c5b

Browse files
committed
Update README.md
1 parent d9adee5 commit 4067c5b

File tree

1 file changed

+35
-20
lines changed

1 file changed

+35
-20
lines changed

README.md

Lines changed: 35 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,17 @@ Parse Dashboard is a standalone dashboard for managing your [Parse Server](https
6161
- [Data Browser](#data-browser)
6262
- [Filters](#filters)
6363
- [Info Panel](#info-panel)
64-
- [Segments](#segments)
65-
- [Text Item](#text-item)
66-
- [Key-Value Item](#key-value-item)
67-
- [Table Item](#table-item)
68-
- [Image Item](#image-item)
69-
- [Video Item](#video-item)
70-
- [Audio Item](#audio-item)
71-
- [Button Item](#button-item)
72-
- [Panel Item](#panel-item)
64+
- [Response](#response)
65+
- [Segments](#segments)
66+
- [Text Item](#text-item)
67+
- [Key-Value Item](#key-value-item)
68+
- [Table Item](#table-item)
69+
- [Image Item](#image-item)
70+
- [Video Item](#video-item)
71+
- [Audio Item](#audio-item)
72+
- [Button Item](#button-item)
73+
- [Panel Item](#panel-item)
74+
- [Prefetching](#prefetching)
7375
- [Freeze Columns](#freeze-columns)
7476
- [Browse as User](#browse-as-user)
7577
- [Change Pointer Key](#change-pointer-key)
@@ -140,8 +142,8 @@ Parse Dashboard is continuously tested with the most recent releases of Node.js
140142
| `infoPanel[*].title` | String | no | - | `User Details` | The panel title. |
141143
| `infoPanel[*].classes` | Array<String> | no | - | `["_User"]` | The classes for which the info panel should be displayed. |
142144
| `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. |
143-
| `infoPanel[*].prefetchObjects` | Number | yes | `0` | `2` | Number of rows to prefetch when browsing sequential rows.
144-
| `infoPanel[*].prefetchStale` | Number | yes | `0` | `10` | Duration in seconds after which prefetched data is discarded.
145+
| `infoPanel[*].prefetchObjects` | Number | yes | `0` | `2` | Number of next rows to prefetch when browsing sequential rows. For example, `2` means the next 2 rows will be fetched in advance. |
146+
| `infoPanel[*].prefetchStale` | Number | yes | `0` | `10` | Duration in seconds after which prefetched data is discarded as stale. |
145147
| `apps.scripts` | Array<Object> | yes | `[]` | `[{ ... }, { ... }]` | The scripts that can be executed for that app. |
146148
| `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. |
147149
| `apps.scripts.classes` | Array<String> | no | - | `['_User']` | The classes of Parse Objects for which the scripts can be executed. |
@@ -886,7 +888,9 @@ The following example dashboard configuration shows an info panel for the `_User
886888

887889
The Cloud Code Function receives the selected object in the payload and returns a response that can include various items.
888890

889-
#### Segments
891+
#### Response
892+
893+
##### Segments
890894

891895
The info panel can contain multiple segments to display different groups of information.
892896

@@ -922,7 +926,7 @@ Example:
922926

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

925-
#### Text Item
929+
##### Text Item
926930

927931
A simple text field.
928932

@@ -942,7 +946,7 @@ Example:
942946
}
943947
```
944948

945-
#### Key-Value Item
949+
##### Key-Value Item
946950

947951
A text item that consists of a key and a value. The value can optionally be linked to a URL.
948952

@@ -1013,7 +1017,7 @@ const item = {
10131017
}
10141018
```
10151019

1016-
#### Table Item
1020+
##### Table Item
10171021

10181022
A table with columns and rows to display data in a structured format.
10191023

@@ -1055,7 +1059,7 @@ Example:
10551059
}
10561060
```
10571061

1058-
#### Image Item
1062+
##### Image Item
10591063

10601064
An image to be displayed in the panel.
10611065

@@ -1075,7 +1079,7 @@ Example:
10751079
}
10761080
```
10771081

1078-
#### Video Item
1082+
##### Video Item
10791083

10801084
A video to be displayed in the panel.
10811085

@@ -1095,7 +1099,7 @@ Example:
10951099
}
10961100
```
10971101

1098-
#### Audio Item
1102+
##### Audio Item
10991103

11001104
An audio file to be played in the panel.
11011105

@@ -1115,7 +1119,7 @@ Example:
11151119
}
11161120
```
11171121

1118-
#### Button Item
1122+
##### Button Item
11191123

11201124
A button that triggers an action when clicked.
11211125

@@ -1150,7 +1154,7 @@ Example:
11501154
}
11511155
```
11521156

1153-
#### Panel Item
1157+
##### Panel Item
11541158

11551159
A sub-panel whose data is loaded on-demand by expanding the item.
11561160

@@ -1172,6 +1176,17 @@ Example:
11721176
}
11731177
```
11741178

1179+
#### Prefetching
1180+
1181+
To reduce the time for info panel data to appear, data can be prefetched.
1182+
1183+
| Parameter | Type | Optional | Default | Example | Description |
1184+
|--------------------------------|--------|----------|---------|---------|-----------------------------------------------------------------------------------------------------------------------------------|
1185+
| `infoPanel[*].prefetchObjects` | Number | yes | `0` | `2` | Number of next rows to prefetch when browsing sequential rows. For example, `2` means the next 2 rows will be fetched in advance. |
1186+
| `infoPanel[*].prefetchStale` | Number | yes | `0` | `10` | Duration in seconds after which prefetched data is discarded as stale. |
1187+
1188+
Prefetching is particularly useful when navigating through lists of objects. To optimize performance and avoid unnecessary data loading, prefetching is triggered only after the user has moved through 3 consecutive rows using the keyboard down-arrow key.
1189+
11751190
### Freeze Columns
11761191

11771192
▶️ *Core > Browser > Freeze column*

0 commit comments

Comments
 (0)