Skip to content

Commit

Permalink
Update Business Table and Business Text documentation (#921)
Browse files Browse the repository at this point in the history
* upd documentation

* Formatting

---------

Co-authored-by: Mikhail Volkov <[email protected]>
  • Loading branch information
vitPinchuk and mikhail-vl authored Feb 23, 2025
1 parent e8731d6 commit 541ca16
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
24 changes: 24 additions & 0 deletions docs/business-table/features.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,30 @@ You can use the Grafana **Overrides** feature to configure column links (not for
src="/img/blog/2024-09-26-business-table-1.3.0/links.png"
/>

### Update variables using data links

Data links help expose additional functionality of the Business Table. Changing a variable through the table can be implemented as follows.

Configure the Data Links option

```
/d/${__dashboard.uid}?${__url_time_range}&var-Test=${__data.fields.device}
```

where `__data.fields.device` uses the value from the `device` field in the current row when the cell is clicked. This is how the variable will be changed. In string `var-Test` the substring `Test` is the variable to be replaced.

<Image
title="Configure the Data Links option to update dashboard variable."
src="/img/plugins/business-table/data-links-variable-config.png"
/>

Clicking on a cell with the value `device10` will change the value of the Text variable.

<Image
title="Click on cell to change variable."
src="/img/plugins/business-table/click-variable-change.png"
/>

## Support of the Standard options

:::info version
Expand Down
2 changes: 2 additions & 0 deletions docs/business-text/code/panel.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,8 @@ console.log(theme);
Function to refresh dashboard panels using application events.
_Added in: v5.7.0_
#### Usage
```javascript
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 541ca16

Please sign in to comment.