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: 14 November, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.