ContextMenuItem Class
Deprecated in 4.16.0. Use [[iTwinUI MenuItem]] instead.
Menu item component for use within a ContextMenu component.
Extends
- React.PureComponent<ContextMenuItemProps, ContextMenuItemState>
Methods
| Name | Description | |
|---|---|---|
| constructor(props: ContextMenuItemProps): ContextMenuItem | ||
| componentDidMount(): void | Called immediately after a component is mounted. | |
| render(): React.ReactElement<any, string | React.JSXElementConstructor<any>> | ||
| select(): void |
Properties
| Name | Type | Description | |
|---|---|---|---|
| defaultProps Static | Partial<ContextMenuItemProps> | ||
| state Readonly | Readonly<ContextMenuItemState> |
Defined in
Last Updated: 17 September, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.