mirror of https://github.com/grafana/grafana
Storybook: Add documentation and controls to RefreshPicker story (#51736)
parent
ee88b44458
commit
cd3bf59ce3
@ -0,0 +1,19 @@ |
||||
import { Meta, Preview, Props } from '@storybook/addon-docs/blocks'; |
||||
import { RefreshPicker } from './RefreshPicker'; |
||||
|
||||
<Meta title="MDX|RefreshPicker" component={RefreshPicker} /> |
||||
|
||||
# Refresh Picker |
||||
|
||||
This component is used on dashboards to refresh visualizations. Grafana does not do this automatically, queries run on their own schedule according to the panel settings. Grafana cancels any pending requests when a new refresh is triggered. |
||||
|
||||
**The refresh icon:** will immediately run the query and refresh the visualizations. |
||||
|
||||
**The down arrow:** will display a list of refresh intervals. If one of them is selected the dashboard will regularly refresh according to that schedule. |
||||
|
||||
<Preview> |
||||
<RefreshPicker tooltip="Run query" /> |
||||
<RefreshPicker text="Run query" tooltip="Run query" /> |
||||
<RefreshPicker text="Run query" isLoading={true} tooltip="Run query" value="1h" /> |
||||
</Preview> |
||||
<Props of={RefreshPicker} /> |
Loading…
Reference in new issue