parse-dashboard 8.0.0-alpha.3 → 8.0.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -224,6 +224,9 @@ Each class in `columnPreference` can have an array of column configurations:
|
|
|
224
224
|
| `cloudCodeFunction` | String | no | - | `"getUserDetails"` | Cloud Function receiving selected object. |
|
|
225
225
|
| `prefetchObjects` | Number | yes | `0` | `2` | Number of next rows to prefetch. |
|
|
226
226
|
| `prefetchStale` | Number | yes | `0` | `10` | Seconds after which prefetched data is stale. |
|
|
227
|
+
| `prefetchImage` | Boolean | yes | `true` | `false` | Whether to prefetch image content. |
|
|
228
|
+
| `prefetchVideo` | Boolean | yes | `true` | `false` | Whether to prefetch video content. |
|
|
229
|
+
| `prefetchAudio` | Boolean | yes | `true` | `false` | Whether to prefetch audio content. |
|
|
227
230
|
|
|
228
231
|
|
|
229
232
|
##### User Configuration (`users[]`)
|
|
@@ -1020,7 +1023,10 @@ The following example dashboard configuration shows an info panel for the `_User
|
|
|
1020
1023
|
"classes": ["_User"],
|
|
1021
1024
|
"cloudCodeFunction": "getUserDetails",
|
|
1022
1025
|
"prefetchObjects": 2,
|
|
1023
|
-
"prefetchStale": 10
|
|
1026
|
+
"prefetchStale": 10,
|
|
1027
|
+
"prefetchImage": true,
|
|
1028
|
+
"prefetchVideo": true,
|
|
1029
|
+
"prefetchAudio": true
|
|
1024
1030
|
}
|
|
1025
1031
|
]
|
|
1026
1032
|
}
|
|
@@ -1321,13 +1327,18 @@ Example:
|
|
|
1321
1327
|
|
|
1322
1328
|
To reduce the time for info panel data to appear, data can be prefetched.
|
|
1323
1329
|
|
|
1324
|
-
| Parameter | Type
|
|
1325
|
-
|
|
1326
|
-
| `infoPanel[*].prefetchObjects` | Number
|
|
1327
|
-
| `infoPanel[*].prefetchStale` | Number
|
|
1330
|
+
| Parameter | Type | Optional | Default | Example | Description |
|
|
1331
|
+
|--------------------------------|---------|----------|---------|---------|-----------------------------------------------------------------------------------------------------------------------------------|
|
|
1332
|
+
| `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. |
|
|
1333
|
+
| `infoPanel[*].prefetchStale` | Number | yes | `0` | `10` | Duration in seconds after which prefetched data is discarded as stale. |
|
|
1334
|
+
| `infoPanel[*].prefetchImage` | Boolean | yes | `true` | `false` | Whether to prefetch image content when prefetching objects. Only applies when `prefetchObjects` is enabled. |
|
|
1335
|
+
| `infoPanel[*].prefetchVideo` | Boolean | yes | `true` | `false` | Whether to prefetch video content when prefetching objects. Only applies when `prefetchObjects` is enabled. |
|
|
1336
|
+
| `infoPanel[*].prefetchAudio` | Boolean | yes | `true` | `false` | Whether to prefetch audio content when prefetching objects. Only applies when `prefetchObjects` is enabled. |
|
|
1328
1337
|
|
|
1329
1338
|
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 or by mouse click.
|
|
1330
1339
|
|
|
1340
|
+
When `prefetchObjects` is enabled, media content (images, videos, and audio) in the info panel can also be prefetched to improve loading performance. By default, all media types are prefetched, but you can selectively disable prefetching for specific media types using the `prefetchImage`, `prefetchVideo`, and `prefetchAudio` options.
|
|
1341
|
+
|
|
1331
1342
|
### Freeze Columns
|
|
1332
1343
|
|
|
1333
1344
|
▶️ *Core > Browser > Freeze column*
|