mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
StatusHistory: Add pagination option (#99517)
* first pass * Add to docs * Move pagination hook and styles to a shared util * Update docs/sources/panels-visualizations/visualizations/status-history/index.md Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com> --------- Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>
This commit is contained in:
@@ -17,6 +17,10 @@ export interface Options extends ui.OptionsWithLegend, ui.OptionsWithTooltip, ui
|
||||
* Controls the column width
|
||||
*/
|
||||
colWidth?: number;
|
||||
/**
|
||||
* Enables pagination when > 0
|
||||
*/
|
||||
perPage?: number;
|
||||
/**
|
||||
* Set the height of the rows
|
||||
*/
|
||||
@@ -29,6 +33,7 @@ export interface Options extends ui.OptionsWithLegend, ui.OptionsWithTooltip, ui
|
||||
|
||||
export const defaultOptions: Partial<Options> = {
|
||||
colWidth: 0.9,
|
||||
perPage: 20,
|
||||
rowHeight: 0.9,
|
||||
showValue: ui.VisibilityMode.Auto,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user