mirror of
https://github.com/grafana/grafana.git
synced 2025-02-20 11:48:34 -06:00
* baldm0mma/revert * baldm0mma/revert * baldm0mma/revert/ update tests * baldm0mma/revert/ add back isCountRowsSet condition * baldm0mma/revert/ update tests * baldm0mma/revert update annos
63 lines
1.3 KiB
TypeScript
63 lines
1.3 KiB
TypeScript
// Code generated - EDITING IS FUTILE. DO NOT EDIT.
|
|
//
|
|
// Generated by:
|
|
// public/app/plugins/gen.go
|
|
// Using jennies:
|
|
// TSTypesJenny
|
|
// PluginTSTypesJenny
|
|
//
|
|
// Run 'make gen-cue' from repository root to regenerate.
|
|
|
|
import * as ui from '@grafana/schema';
|
|
|
|
export const PanelCfgModelVersion = Object.freeze([0, 0]);
|
|
|
|
export interface PanelOptions {
|
|
/**
|
|
* Controls the height of the rows
|
|
*/
|
|
cellHeight?: ui.TableCellHeight;
|
|
/**
|
|
* Controls footer options
|
|
*/
|
|
footer?: ui.TableFooterOptions;
|
|
/**
|
|
* Represents the index of the selected frame
|
|
*/
|
|
frameIndex: number;
|
|
/**
|
|
* Controls whether the panel should show the header
|
|
*/
|
|
showHeader: boolean;
|
|
/**
|
|
* Controls whether the header should show icons for the column types
|
|
*/
|
|
showTypeIcons?: boolean;
|
|
/**
|
|
* Used to control row sorting
|
|
*/
|
|
sortBy?: Array<ui.TableSortByFieldState>;
|
|
}
|
|
|
|
export const defaultPanelOptions: Partial<PanelOptions> = {
|
|
cellHeight: ui.TableCellHeight.Sm,
|
|
footer: {
|
|
/**
|
|
* Controls whether the footer should be shown
|
|
*/
|
|
show: false,
|
|
/**
|
|
* Controls whether the footer should show the total number of rows on Count calculation
|
|
*/
|
|
countRows: false,
|
|
/**
|
|
* Represents the selected calculations
|
|
*/
|
|
reducer: [],
|
|
},
|
|
frameIndex: 0,
|
|
showHeader: true,
|
|
showTypeIcons: false,
|
|
sortBy: [],
|
|
};
|