Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(types): add tabularRepModal interface #1725

Merged
7 changes: 6 additions & 1 deletion packages/core/src/interfaces/charts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ import type {
StackedBarOptions,
ToolbarOptions,
TooltipOptions,
ZoomBarsOptions
ZoomBarsOptions,
TabularRepCustomizationOptions
} from './components'
import type {
AxesOptions,
Expand Down Expand Up @@ -166,6 +167,10 @@ export interface BaseChartOptions {
* whether this type of chart is experimental
*/
experimental?: boolean
/**
* options related to table data customization
*/
tabularRepModal?: TabularRepCustomizationOptions
}

/**
Expand Down
14 changes: 14 additions & 0 deletions packages/core/src/interfaces/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,3 +252,17 @@ export interface ZoomBarOptions {
*/
data?: object[]
}

/**
* customize the Tabular Data
*/
export interface TabularRepCustomizationOptions {
/**
* option to customize the Table Headers
*/
tableHeadingFormatter?: (headings: string[]) => string[]
/**
* option to customize the Table Cells
*/
tableCellFormatter?: (cells: string[][]) => string[][]
}