Skip to content

Commit

Permalink
docs: Fix incorrect info panel docs (#2648)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtrezza authored Feb 1, 2025
1 parent b523e00 commit 81c9c77
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -960,13 +960,29 @@ Examples:
```json
{
"type": "keyValue",
"key": "Last purchase ID",
"key": "Purchase",
"value": "123",
"url": "browser/_User",
"url": "browser/Purchase",
"isRelativeUrl": true
}
```

To navigate to a specific object using a relative URL, the query parameters must be URL encoded:

```js
const objectId = 'abc123';
const className = 'Purchase';
const query = [{ field: 'objectId', constraint: 'eq', compareTo: objectId }];
const url = `browser/Purchase?filters=${JSON.stringify(query)}`;
const item = {
type: 'keyValue',
key: 'Purchase',
value: objectId,
url,
isRelativeUrl: true
}
```

#### Table Item

A table with columns and rows to display data in a structured format.
Expand Down Expand Up @@ -1109,7 +1125,7 @@ Example:
```json
{
"type": "panel",
"text": "Purchase History",
"title": "Purchase History",
"cloudCodeFunction": "getUserPurchaseHistory"
}
```
Expand Down

0 comments on commit 81c9c77

Please sign in to comment.