Rate this page:
A menu shown in Confluence when a user selects a piece of text, which triggers an InlineDialog.
The ContextMenu
:
The InlineDialog:
Example: Dictionary app
ContextMenu
is the top-level component required for the
confluence:contextMenu
module.
1 2import ForgeUI, { ContextMenu } from '@forge/ui';
Name | Type | Required | Description |
---|---|---|---|
children | Array<ForgeComponent> | Yes | A container for displaying multiple components. Can only contain InlineDialog. |
1 2import ForgeUI, { render, Text, ContextMenu, InlineDialog } from '@forge/ui'; const App = () => { return ( <InlineDialog> <Text>Hello world!</Text> </InlineDialog> ); }; export const run = render( <ContextMenu> <App/> </ContextMenu> );
Rate this page: