StateTimeline: Add pagination support (#89586)

Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
This commit is contained in:
Kevin Putera
2024-08-09 10:44:17 +08:00
committed by GitHub
parent 970a6e71ba
commit 01fc31069f
8 changed files with 259 additions and 87 deletions

View File

@@ -21,6 +21,10 @@ export interface Options extends ui.OptionsWithLegend, ui.OptionsWithTooltip, ui
* Merge equal consecutive values
*/
mergeValues?: boolean;
/**
* Enables pagination when > 0
*/
perPage?: number;
/**
* Controls the row height
*/
@@ -34,6 +38,7 @@ export interface Options extends ui.OptionsWithLegend, ui.OptionsWithTooltip, ui
export const defaultOptions: Partial<Options> = {
alignValue: 'left',
mergeValues: true,
perPage: 20,
rowHeight: 0.9,
showValue: ui.VisibilityMode.Auto,
};