Skip to content

Commit 81c9c77

Browse files
authored
docs: Fix incorrect info panel docs (#2648)
1 parent b523e00 commit 81c9c77

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

README.md

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -960,13 +960,29 @@ Examples:
960960
```json
961961
{
962962
"type": "keyValue",
963-
"key": "Last purchase ID",
963+
"key": "Purchase",
964964
"value": "123",
965-
"url": "browser/_User",
965+
"url": "browser/Purchase",
966966
"isRelativeUrl": true
967967
}
968968
```
969969

970+
To navigate to a specific object using a relative URL, the query parameters must be URL encoded:
971+
972+
```js
973+
const objectId = 'abc123';
974+
const className = 'Purchase';
975+
const query = [{ field: 'objectId', constraint: 'eq', compareTo: objectId }];
976+
const url = `browser/Purchase?filters=${JSON.stringify(query)}`;
977+
const item = {
978+
type: 'keyValue',
979+
key: 'Purchase',
980+
value: objectId,
981+
url,
982+
isRelativeUrl: true
983+
}
984+
```
985+
970986
#### Table Item
971987

972988
A table with columns and rows to display data in a structured format.
@@ -1109,7 +1125,7 @@ Example:
11091125
```json
11101126
{
11111127
"type": "panel",
1112-
"text": "Purchase History",
1128+
"title": "Purchase History",
11131129
"cloudCodeFunction": "getUserPurchaseHistory"
11141130
}
11151131
```

0 commit comments

Comments
 (0)