From 894497677b81d1dc9cf65743189c315df3ea4486 Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Tue, 9 Jan 2024 23:15:53 +0100 Subject: [PATCH] docs/frontend-system: add core feature extension types Signed-off-by: Patrik Oldsberg --- .../frontend-system/building-plugins/01-index.md | 2 ++ .../building-plugins/03-extension-types.md | 16 ++++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/docs/frontend-system/building-plugins/01-index.md b/docs/frontend-system/building-plugins/01-index.md index 730dd58156..80182126be 100644 --- a/docs/frontend-system/building-plugins/01-index.md +++ b/docs/frontend-system/building-plugins/01-index.md @@ -199,3 +199,5 @@ const exampleEntityContent = createEntityContentExtension({ ``` The `ExampleEntityContent` itself is again a regular React component where you can implement any functionality you want. To access the entity that the content is being rendered for, you can use the `useEntity` hook from `@backstage/plugin-catalog-react`. You can see a full list of API provided by the catalog React library in [the API reference](../../reference/plugin-catalog-react.md). + +For a more complete list of the different types of extensions that you can create for your plugin, see the [extension types](./03-extension-types.md) section. diff --git a/docs/frontend-system/building-plugins/03-extension-types.md b/docs/frontend-system/building-plugins/03-extension-types.md index 36eda55112..1d59c60545 100644 --- a/docs/frontend-system/building-plugins/03-extension-types.md +++ b/docs/frontend-system/building-plugins/03-extension-types.md @@ -41,3 +41,19 @@ Theme extensions provide custom themes for the app. They are always attached to ### Translation - [Reference](../../reference/frontend-plugin-api.createtranslationextension.md) Translation extension provide custom translation messages for the app. They can be used both to override the default english messages to custom ones, as well as provide translations for additional languages. + +## Core feature extension types + +These are the extension types provided by the Backstage core feature plugins. + +### EntityCard - [Reference](../../reference/plugin-catalog-react.createentitycardextension.md) + +Creates entity cards to be displayed on the entity pages of the catalog plugin. + +### EntityContent - [Reference](../../reference/plugin-catalog-react.createentitycontentextension.md) + +Creates entity content to be displayed on the entity pages of the catalog plugin. + +### SearchResultListItem - [Reference](../../reference/plugin-search-react.createsearchresultlistitemextension.md) + +Creates search result list items for different types of search results, to be displayed in search result lists.