| Parameter | Description |
|---|---|
| actionName | The label of the entry. Use forward slashes to nest the entry under submenus. |
| action | The callback invoked when the user selects the entry. |
Appends an entry to the contextual menu.
| Parameter | Description |
|---|---|
| actionName | The label of the entry. Use forward slashes to nest the entry under submenus. |
| action | The callback invoked when the user selects the entry. The argument gives access to the user data set on the entry. |
Appends an entry to the contextual menu.
| Parameter | Description |
|---|---|
| actionName | The label of the entry. Use forward slashes to nest the entry under submenus. |
| action | The callback invoked when the user selects the entry. |
| actionStatusCallback | Callback that returns the entry's status at menu-open time. |
| userData | Arbitrary data forwarded to action and actionStatusCallback via DropdownMenuAction.userData. |
Appends an entry to the contextual menu, with a status callback that decides whether the entry is enabled, disabled, or checked when the menu opens.