Allow tableOptions to be able to be passed to DefaultApiExplorerPage

Signed-off-by: Michael Haley <mike.f.haley@gmail.com>
This commit is contained in:
Michael Haley
2022-05-24 10:34:30 -04:00
parent 8330eb02e5
commit ed1727148c
2 changed files with 5 additions and 0 deletions
+2
View File
@@ -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<CatalogTableRow>[];
actions?: TableProps<CatalogTableRow>['actions'];
tableOptions?: TableProps<CatalogTableRow>['options'];
};
// Warning: (ae-missing-release-tag) "defaultDefinitionWidgets" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
@@ -57,6 +57,7 @@ export type DefaultApiExplorerPageProps = {
initiallySelectedFilter?: UserListFilterKind;
columns?: TableColumn<CatalogTableRow>[];
actions?: TableProps<CatalogTableRow>['actions'];
tableOptions?: TableProps<CatalogTableRow>['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 = ({
<CatalogTable
columns={columns || defaultColumns}
actions={actions}
tableOptions={tableOptions}
/>
</CatalogFilterLayout.Content>
</CatalogFilterLayout>