From ed1727148cabe423787930cb395114902889775a Mon Sep 17 00:00:00 2001 From: Michael Haley Date: Tue, 24 May 2022 10:34:30 -0400 Subject: [PATCH] Allow tableOptions to be able to be passed to DefaultApiExplorerPage Signed-off-by: Michael Haley --- plugins/api-docs/api-report.md | 2 ++ .../src/components/ApiExplorerPage/DefaultApiExplorerPage.tsx | 3 +++ 2 files changed, 5 insertions(+) diff --git a/plugins/api-docs/api-report.md b/plugins/api-docs/api-report.md index 6246ee797e..8f58a0ab86 100644 --- a/plugins/api-docs/api-report.md +++ b/plugins/api-docs/api-report.md @@ -113,6 +113,7 @@ export const DefaultApiExplorerPage: ({ initiallySelectedFilter, columns, actions, + tableOptions, }: DefaultApiExplorerPageProps) => JSX.Element; // @public @@ -120,6 +121,7 @@ export type DefaultApiExplorerPageProps = { initiallySelectedFilter?: UserListFilterKind; columns?: TableColumn[]; actions?: TableProps['actions']; + tableOptions?: TableProps['options']; }; // Warning: (ae-missing-release-tag) "defaultDefinitionWidgets" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal) diff --git a/plugins/api-docs/src/components/ApiExplorerPage/DefaultApiExplorerPage.tsx b/plugins/api-docs/src/components/ApiExplorerPage/DefaultApiExplorerPage.tsx index 9fc6b2c3c2..06c4b6f76a 100644 --- a/plugins/api-docs/src/components/ApiExplorerPage/DefaultApiExplorerPage.tsx +++ b/plugins/api-docs/src/components/ApiExplorerPage/DefaultApiExplorerPage.tsx @@ -57,6 +57,7 @@ export type DefaultApiExplorerPageProps = { initiallySelectedFilter?: UserListFilterKind; columns?: TableColumn[]; actions?: TableProps['actions']; + tableOptions?: TableProps['options']; }; /** @@ -67,6 +68,7 @@ export const DefaultApiExplorerPage = ({ initiallySelectedFilter = 'all', columns, actions, + tableOptions = {}, }: DefaultApiExplorerPageProps) => { const configApi = useApi(configApiRef); const generatedSubtitle = `${ @@ -103,6 +105,7 @@ export const DefaultApiExplorerPage = ({