Class UiInteractableComponentActions
Implementation of IUiInteractableComponentActions to handle UI interactable component actions.
Inheritance
Inherited Members
Namespace: Serenity.Ui.Application.Components
Assembly: Serenity.Ui.Application.dll
Syntax
public class UiInteractableComponentActions : UiComponentActions, IUiInteractableActions, IUiComponentActions, IComponentActions
Constructors
UiInteractableComponentActions()
Declaration
public UiInteractableComponentActions()
UiInteractableComponentActions(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>, Action<IUiComponent>, Action<IUiComponent>, Action<IUiComponent>, Action<IUiComponent>)
Initializes a new instance of the UiInteractableComponentActions class with the specified actions.
Declaration
public UiInteractableComponentActions(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, Action<IUiComponent> incrementValue = null, Action<IUiComponent> decrementValue = null, Action<IUiComponent> submit = null, Action<IUiComponent> cancel = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Action<IUiComponent> | awake | The action to be executed when the UI component awakes. |
| Action<IUiComponent> | onEnable | The action to be executed when the UI component is enabled. |
| Action<IUiComponent> | update | The action to be executed when the UI component updates. |
| Action<IUiComponent> | onDisable | The action to be executed when the UI component is disabled. |
| Action<IUiComponent> | onDestroy | The action to be executed when the UI component is destroyed. |
| Action<IUiComponent> | onDraggingStart | The action to be executed when the UI component starts being dragged. |
| Action<IUiComponent> | onDraggingEnd | The action to be executed when the UI component stops being dragged. |
| Action<IUiComponent> | onFocus | The action to be executed when the UI component receives focus. |
| Action<IUiComponent> | onBlur | The action to be executed when the UI component loses focus. |
| Action<IUiComponent, string> | selectComponentById | The action to be executed when the UI component is selected by its ID. |
| Action<IUiComponent> | selectNextComponent | The action to be executed when the next UI component is selected. |
| Action<IUiComponent> | selectPreviousComponent | The action to be executed when the previous UI component is selected. |
| Action<IUiComponent> | incrementValue | The action to be executed when the UI component's value is incremented. |
| Action<IUiComponent> | decrementValue | The action to be executed when the UI component's value is decremented. |
| Action<IUiComponent> | submit | The action to be executed when the UI component is submitted. |
| Action<IUiComponent> | cancel | The action to be executed when the UI component action is canceled. |
Fields
_cancel
Declaration
protected Action<IUiComponent> _cancel
Field Value
| Type | Description |
|---|---|
| Action<IUiComponent> | Occurs when the UI component action is canceled. |
_decrementValue
Declaration
protected Action<IUiComponent> _decrementValue
Field Value
| Type | Description |
|---|---|
| Action<IUiComponent> | Occurs when the UI component's value is decremented. |
_incrementValue
Declaration
protected Action<IUiComponent> _incrementValue
Field Value
| Type | Description |
|---|---|
| Action<IUiComponent> | Occurs when the UI component's value is incremented. |
_onBlur
Declaration
protected Action<IUiComponent> _onBlur
Field Value
| Type | Description |
|---|---|
| Action<IUiComponent> | Occurs when the UI component loses focus. |
_onDraggingEnd
Declaration
protected Action<IUiComponent> _onDraggingEnd
Field Value
| Type | Description |
|---|---|
| Action<IUiComponent> | Occurs when the UI component stops being dragged. |
_onDraggingStart
Declaration
protected Action<IUiComponent> _onDraggingStart
Field Value
| Type | Description |
|---|---|
| Action<IUiComponent> | Occurs when the UI component starts being dragged. |
_onFocus
Declaration
protected Action<IUiComponent> _onFocus
Field Value
| Type | Description |
|---|---|
| Action<IUiComponent> | Occurs when the UI component receives focus. |
_selectComponentById
Declaration
protected Action<IUiComponent, string> _selectComponentById
Field Value
| Type | Description |
|---|---|
| Action<IUiComponent, string> | Occurs when the UI component is selected by its ID. |
_selectNextComponent
Declaration
protected Action<IUiComponent> _selectNextComponent
Field Value
| Type | Description |
|---|---|
| Action<IUiComponent> | Occurs when the next UI component is selected. |
_selectPreviousComponent
Declaration
protected Action<IUiComponent> _selectPreviousComponent
Field Value
| Type | Description |
|---|---|
| Action<IUiComponent> | Occurs when the previous UI component is selected. |
_submit
Declaration
protected Action<IUiComponent> _submit
Field Value
| Type | Description |
|---|---|
| Action<IUiComponent> | Occurs when the UI component is submitted. |
Properties
Cancel
Occurs when the UI component action is canceled.
Declaration
public Action<IUiComponent> Cancel { get; set; }
Property Value
| Type | Description |
|---|---|
| Action<IUiComponent> | The action to be executed when the UI component action is canceled. |
DecrementValue
Occurs when the UI component's value is decremented.
Declaration
public Action<IUiComponent> DecrementValue { get; set; }
Property Value
| Type | Description |
|---|---|
| Action<IUiComponent> | The action to be executed when the UI component's value is decremented. |
IncrementValue
Occurs when the UI component's value is incremented.
Declaration
public Action<IUiComponent> IncrementValue { get; set; }
Property Value
| Type | Description |
|---|---|
| Action<IUiComponent> | The action to be executed when the UI component's value is incremented. |
OnBlur
Occurs when the UI component loses focus.
Declaration
public Action<IUiComponent> OnBlur { get; set; }
Property Value
| Type | Description |
|---|---|
| Action<IUiComponent> | The action to be executed when the UI component loses focus. |
OnDraggingEnd
Occurs when the UI component stops being dragged.
Declaration
public Action<IUiComponent> OnDraggingEnd { get; set; }
Property Value
| Type | Description |
|---|---|
| Action<IUiComponent> | The action to be executed when the UI component stops being dragged. |
OnDraggingStart
Occurs when the UI component action is canceled.
Declaration
public Action<IUiComponent> OnDraggingStart { get; set; }
Property Value
| Type | Description |
|---|---|
| Action<IUiComponent> | The action to be executed when the UI component action is canceled. |
OnFocus
Occurs when the UI component receives focus.
Declaration
public Action<IUiComponent> OnFocus { get; set; }
Property Value
| Type | Description |
|---|---|
| Action<IUiComponent> | The action to be executed when the UI component receives focus. |
SelectComponentById
Occurs when the UI component is selected by its ID.
Declaration
public Action<IUiComponent, string> SelectComponentById { get; set; }
Property Value
| Type | Description |
|---|---|
| Action<IUiComponent, string> | The action to be executed when the UI component is selected by its ID. |
SelectNextComponent
Occurs when the next UI component is selected.
Declaration
public Action<IUiComponent> SelectNextComponent { get; set; }
Property Value
| Type | Description |
|---|---|
| Action<IUiComponent> | The action to be executed when the next UI component is selected. |
SelectPreviousComponent
Occurs when the previous UI component is selected.
Declaration
public Action<IUiComponent> SelectPreviousComponent { get; set; }
Property Value
| Type | Description |
|---|---|
| Action<IUiComponent> | The action to be executed when the previous UI component is selected. |
Submit
Occurs when the UI component is submitted.
Declaration
public Action<IUiComponent> Submit { get; set; }
Property Value
| Type | Description |
|---|---|
| Action<IUiComponent> | The action to be executed when the UI component is submitted. |