ContentToolWidgetComposer Function

ContentToolWidgetComposer composes a Tool Widget with no tools defined by default. UiItemsProviders are used to populate the toolbars. See StandardContentToolsProvider.

ContentToolWidgetComposer(props: ContentToolWidgetComposerProps): React.JSX.Element

@example ToolWidget with no corner button

<ContentToolWidgetComposer />

ToolWidget with corner button

const cornerButton = <BackstageAppButton icon={<SvgBentleySystems />} />;
<ContentToolWidgetComposer cornerButton={cornerButton} />

ToolWidget with custom corner button

const cornerButton = <BackstageAppButton icon={<SvgBentleySystems />}
  label="Toggle Backstage display",
  execute={() => UiFramework.backstage.getBackstageToggleCommand().execute()} />;
<ContentToolWidgetComposer cornerButton={cornerButton} />

BackstageCornerButton,

Parameter Type Description
props ContentToolWidgetComposerProps  

Returns - React.JSX.Element

Defined in

Last Updated: 17 December, 2024