Rate this page:
Renders a list of custom content created within a space.
SpaceCustomContentListView
component is available for
confluence:spacePage and
confluence:spaceSettings modules.
1 2import ForgeUI, { SpaceCustomContentListView } from '@forge/ui';
Name | Type | Required | Description |
---|---|---|---|
spaceKey | sting | Yes | The key for the space for which the list is displayed. |
type | string | Yes | The custom content type for which the list is displayed. Use the following format for the type: forge:[APP_ID]:[ENVIRONMENT_ID]:[MODULE_KEY] .Where:
|
1 2import ForgeUI, {render, Text, SpacePage, useProductContext, SpaceCustomContentListView} from '@forge/ui'; const App = () => { const {spaceKey, localId, environmentType} = useProductContext(); // extractAppId implementation omitted const type = `forge:${extractAppId(localId)}:${environmentType}:customer`; return ( <SpaceCustomContentListView type={customContentType} spaceKey={spaceKey} /> ); }; export const run = render( <SpacePage> <App/> </SpacePage> );
Rate this page: