ContextMenu
This component is used to show context menus
Context menu provides access to features that’s directly related to an item. This menu should be hidden by default. To show this menu user should click on special button.
Context Actions
ContextMenu consists of the list of actions. Each action can be parent action - it means that when user selects this action he can see the submenu.
ContextMenuType
ContextAction
ContextMenuClickAction
ContextMenuCheckboxAction
ContextMenuRadioListAction
SeparatorAction
ParentContextAction extends Omit<ContextAction, 'onClick' | 'hint' | 'danger'>
Properties
Property | Type | Description |
---|---|---|
| Menu items | |
|
| Callback is called when user initiated closing of the menu |
|
| If true the menu takes up the entire available width. Default value is |
|
| Set max height of the menu. Default value is |
History
Altrone 2.2
:refactored
ParentContextAction
interfaceadded different types of
ContextAction
: checkbox, radioList and separatoradded
elementAbove
prop for ContextActionadded
elementBelow
prop for ContextAction
Altrone 2.0
:added
fluid
propadded
maxHeight
propadded
selected
prop for ContextMenuItem
Altrone 1.0
: initial release
Last updated