-
-
Notifications
You must be signed in to change notification settings - Fork 125
Context Menus
palexdev edited this page Jan 22, 2022
·
1 revision
-
Style Class: mfx-context-menu
-
Default Stylesheet: MFXContextMenu.css
-
Default Skin: MFXContextMenuSkin.java
Property | Description | Type |
---|---|---|
items | The list containing the context menu's items | ObservableList |
owner | The context menu's owner node | Node |
disabled | Enables/Disables the context menu | Boolean |
showCondition | Specifies the function used to determine if a MouseEvent should trigger the showAction property. By default, checks if the SECONDARY mouse button was pressed |
Function |
showAction | Specifies the action to perform when a valid MouseEvent occurs. By default, calls shows the context menu at the MouseEvent' screen coordinates |
Consumer |
-
.mfx-context-menu
-
.mfx-context-menu .mfx-menu-item (to access the menu's items)
-
Style Class: mfx-menu-item
-
Default Stylesheet: MFXContextMenuItem.css
-
Default Skin: MFXContextMenuItemSkin.java
Property | Description | Type |
---|---|---|
accelerator | Specifies the accelerator's text. Note that this is just the text, it's up to the user to setup the needed handlers | String |
tooltipSupplier | Specifies the Supplier used to build the item's tooltip | Supplier |
onAction | Specifies the action to perform when clicked | EventHandler |
-
.mfx-menu-item
-
.mfx-menu-item .accelerator
-
.mfx-menu-item .mfx-icon-wrapper (contains the icon)