Merge pull request #15813 from ryan-hanchett/feat/doc-table-pagesize

feat: add option to override material table options for DocsTable
This commit is contained in:
Ben Lambert
2023-01-30 14:05:42 +01:00
committed by GitHub
8 changed files with 30 additions and 2 deletions
+6
View File
@@ -31,6 +31,7 @@ import MaterialBreadcrumbs from '@material-ui/core/Breadcrumbs';
import { MaterialTableProps } from '@material-table/core';
import { NavLinkProps } from 'react-router-dom';
import { Options } from 'react-markdown';
import { Options as Options_2 } from '@material-table/core';
import { Overrides } from '@material-ui/core/styles/overrides';
import { ProfileInfo } from '@backstage/core-plugin-api';
import { ProfileInfoApi } from '@backstage/core-plugin-api';
@@ -1392,6 +1393,11 @@ export type TableFiltersClassKey = 'root' | 'value' | 'heder' | 'filters';
// @public (undocumented)
export type TableHeaderClassKey = 'header';
// Warning: (ae-missing-release-tag) "TableOptions" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
export interface TableOptions<T extends object = {}> extends Options_2<T> {}
// Warning: (ae-missing-release-tag) "TableProps" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
@@ -240,6 +240,8 @@ export interface TableProps<T extends object = {}>
onStateChange?: (state: TableState) => any;
}
export interface TableOptions<T extends object = {}> extends Options<T> {}
export function TableToolbar(toolbarProps: {
toolbarRef: MutableRefObject<any>;
setSearch: (value: string) => void;
@@ -22,6 +22,7 @@ export type {
TableColumn,
TableFilter,
TableProps,
TableOptions,
TableState,
TableClassKey,
FiltersContainerClassKey,