Rate this page:
A modal dialog triggered from the user menu in Jira Service Management customer portal.
This is an example of a PortalUserMenuActionButton
button:
This is an example of the triggered modal dialog:
PortalUserMenuAction
is the top-level component required for the
jiraServiceManagement:portalUserMenuAction
module.
1 2import ForgeUI, { PortalUserMenuAction } from '@forge/ui';
Name | Type | Required | Description |
---|---|---|---|
children | Array<ForgeComponent> | Yes | A container for displaying multiple components. Can only contain ModalDialog. |
1 2import ForgeUI, {render, Text, PortalUserMenuAction, ModalDialog, useState} from '@forge/ui'; const App = () => { const [isOpen, setOpen] = useState(true) if (!isOpen) { return null; } return ( <ModalDialog header="Hello" onClose={() => setOpen(false)}> <Text>Hello world!</Text> </ModalDialog> ); }; export const run = render( <PortalUserMenuAction> <App/> </PortalUserMenuAction> );
Rate this page: