Class UnityUiDropdownComponentActions
Unity UI dropdown component actions that handle expandable list interactions and cancellation events.
Extends selector component actions to provide dropdown-specific callback functionality including submission and cancellation behaviors.
Implements IUiSubmittableActions and IUiCancellableActions interfaces for complete dropdown interaction handling within the UI system.
Inheritance
Implements
Inherited Members
Namespace: Serenity.Ui.Infrastructure.Components
Assembly: Serenity.UnityUi.Infrastructure.dll
Syntax
public class UnityUiDropdownComponentActions : UnityUiSelectorComponentActions, IUiSelectableActions, IUiSubmittableActions, IUiInteractableActions, IUiComponentActions, IComponentActions, IUiCancellableActions
Constructors
UnityUiDropdownComponentActions(Action<IUiComponent, int>, Action<IUiComponent, ConfigurationEntry[]>, Action<IUiComponent>, Action<IUiComponent>, Action<IUiComponent>, Action<IUiComponent>, Action<IUiComponent>, Action<IUiComponent>, Action<IUiComponent>, Action<IUiComponent>, Action<IUiComponent>, Action<IUiComponent>, Action<IUiComponent>, Action<IUiComponent, string>, Action<IUiComponent>, Action<IUiComponent>)
Initializes dropdown component actions with comprehensive callback configuration.
Sets up all available action callbacks including dropdown-specific and inherited selector behaviors.
Provides complete event handling for expandable list interactions within the UI system.
Declaration
public UnityUiDropdownComponentActions(Action<IUiComponent, int> onValueChange = null, Action<IUiComponent, ConfigurationEntry[]> onSelectableValuesChange = null, Action<IUiComponent> onSubmit = null, Action<IUiComponent> onCancel = null, Action<IUiComponent> awake = null, Action<IUiComponent> onEnable = null, Action<IUiComponent> update = null, Action<IUiComponent> onDisable = null, Action<IUiComponent> onDestroy = null, Action<IUiComponent> onDraggingStart = null, Action<IUiComponent> onDraggingEnd = null, Action<IUiComponent> onFocus = null, Action<IUiComponent> onBlur = null, Action<IUiComponent, string> selectComponentById = null, Action<IUiComponent> selectNextComponent = null, Action<IUiComponent> selectPreviousComponent = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Action<IUiComponent, int> | onValueChange | Callback for selected value index change events |
| Action<IUiComponent, ConfigurationEntry[]> | onSelectableValuesChange | Callback for selectable values array change events |
| Action<IUiComponent> | onSubmit | Callback for dropdown submission events |
| Action<IUiComponent> | onCancel | Callback for dropdown cancellation events |
| Action<IUiComponent> | awake | Callback for component awakening |
| Action<IUiComponent> | onEnable | Callback for component enabling |
| Action<IUiComponent> | update | Callback for component updates |
| Action<IUiComponent> | onDisable | Callback for component disabling |
| Action<IUiComponent> | onDestroy | Callback for component destruction |
| Action<IUiComponent> | onDraggingStart | Callback for drag operation start |
| Action<IUiComponent> | onDraggingEnd | Callback for drag operation end |
| Action<IUiComponent> | onFocus | Callback for component focus gain |
| Action<IUiComponent> | onBlur | Callback for component focus loss |
| Action<IUiComponent, string> | selectComponentById | Callback for component selection by ID |
| Action<IUiComponent> | selectNextComponent | Callback for next component selection |
| Action<IUiComponent> | selectPreviousComponent | Callback for previous component selection |
Fields
_onCancel
Declaration
protected Action<IUiComponent> _onCancel
Field Value
| Type | Description |
|---|---|
| Action<IUiComponent> | Action callback triggered when the dropdown component is cancelled or dismissed. |
Properties
OnCancel
Gets or sets the cancel callback action.
Invoked when the dropdown is dismissed or cancelled without selection.
Declaration
public Action<IUiComponent> OnCancel { get; set; }
Property Value
| Type | Description |
|---|---|
| Action<IUiComponent> | The cancel callback action |