# DropdownMenuAction

> Represents a menu action item.

## Definition

* **Type:** Class
* **Namespace:** [UnityEngine.UIElements](/engine/6000.0/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule
* **Inherits from:** [DropdownMenuItem](/engine/6000.0/script-reference/unityengine/uielements/dropdownmenuitem.md)

```csharp
public class DropdownMenuAction : DropdownMenuItem
```

## Constructors

| Constructor                                                                                                                                                                                                                                                                                             | Description                                          |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------- |
| [DropdownMenuAction(System.String,System.Action\{UnityEngine.UIElements.DropdownMenuAction},System.Func\{UnityEngine.UIElements.DropdownMenuAction,UnityEngine.UIElements.DropdownMenuAction.Status},System.Object)](/engine/6000.0/script-reference/unityengine/uielements/dropdownmenuaction/ctor.md) | Initializes a menu action with specified parameters. |

## Properties

| Property                                                                                            | Description                                                            |
| --------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------- |
| [eventInfo](/engine/6000.0/script-reference/unityengine/uielements/dropdownmenuaction/eventinfo.md) | Provides information about the event that triggered the dropdown menu. |
| [name](/engine/6000.0/script-reference/unityengine/uielements/dropdownmenuaction/name.md)           | The name of the item.                                                  |
| [status](/engine/6000.0/script-reference/unityengine/uielements/dropdownmenuaction/status-1.md)     | The status of the item.                                                |
| [userData](/engine/6000.0/script-reference/unityengine/uielements/dropdownmenuaction/userdata.md)   | The userData object stored by the constructor.                         |

## Methods

| Method                                                                                                                | Description                                                               |
| --------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
| [Execute](/engine/6000.0/script-reference/unityengine/uielements/dropdownmenuaction/execute.md)                       | Executes the callback associated with this item.                          |
| [UpdateActionStatus](/engine/6000.0/script-reference/unityengine/uielements/dropdownmenuaction/updateactionstatus.md) | Updates the status flag of this item by calling the item status callback. |

## Static Methods

| Method                                                                                                        | Description                                                    |
| ------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------- |
| [AlwaysDisabled](/engine/6000.0/script-reference/unityengine/uielements/dropdownmenuaction/alwaysdisabled.md) | Creates a status callback that always returns Disabled status. |
| [AlwaysEnabled](/engine/6000.0/script-reference/unityengine/uielements/dropdownmenuaction/alwaysenabled.md)   | Creates a status callback that always returns Enabled.         |

## Enums

| Enum                                                                                                             | Description              |
| ---------------------------------------------------------------------------------------------------------------- | ------------------------ |
| [DropdownMenuAction.Status](/engine/6000.0/script-reference/unityengine/uielements/dropdownmenuaction/status.md) | Status of the menu item. |
