add notes about picker and filter

Signed-off-by: David An <a-daan@expediagroup.com>
This commit is contained in:
David An
2023-03-28 11:50:34 -06:00
parent 1c9a625425
commit f38ce29b61
+20 -1
View File
@@ -3,4 +3,23 @@
'@backstage/plugin-catalog': minor
---
Added namespace filter and column in default catalog table
Added an entity namespace filter and column on the default catalog page.
If you have a custom version of the catalog page, you can add this filter in your CatalogPage code:
```ts
<CatalogFilterLayout>
<CatalogFilterLayout.Filters>
<EntityTypePicker />
<UserListPicker initialFilter={initiallySelectedFilter} />
<EntityTagPicker />
/* if you want namespace picker */
<EntityNamespacePicker />
</CatalogFilterLayout.Filters>
<CatalogFilterLayout.Content>
<CatalogTable columns={columns} actions={actions} />
</CatalogFilterLayout.Content>
</CatalogFilterLayout>
```
The namespace column can be added using `createNamespaceColumn();`. This is only needed if you customized the columns for CatalogTable.