Class UiEditableActions
Implementation of IUiEditableActions to handle UI editable actions.
Inherited Members
Namespace: Serenity.Ui.Application.Components
Assembly: Serenity.Ui.Application.dll
Syntax
public class UiEditableActions : IUiEditableActions, IComponentActions
Constructors
UiEditableActions()
Declaration
public UiEditableActions()
UiEditableActions(Action<IUiComponent, string>, Action<IUiComponent>, Action<IUiComponent>)
Initializes a new instance of the UiEditableActions class with the specified actions.
Declaration
public UiEditableActions(Action<IUiComponent, string> onEdit, Action<IUiComponent> onStartEdition, Action<IUiComponent> onEndEdition)
Parameters
| Type | Name | Description |
|---|---|---|
| Action<IUiComponent, string> | onEdit | The action to be executed when the UI component is edited. |
| Action<IUiComponent> | onStartEdition | The action to be executed when the UI component enters edit mode. |
| Action<IUiComponent> | onEndEdition | The action to be executed when the UI component exits edit mode. |
Properties
OnEdit
Occurs when the UI component is edited.
Declaration
public Action<IUiComponent, string> OnEdit { get; set; }
Property Value
| Type | Description |
|---|---|
| Action<IUiComponent, string> | The action to be executed when the UI component is edited. |
OnEndEdition
Occurs when the UI component exits edit mode.
Declaration
public Action<IUiComponent> OnEndEdition { get; set; }
Property Value
| Type | Description |
|---|---|
| Action<IUiComponent> | The action to be executed when the UI component exits edit mode. |
OnStartEdition
Occurs when the UI component enters edit mode.
Declaration
public Action<IUiComponent> OnStartEdition { get; set; }
Property Value
| Type | Description |
|---|---|
| Action<IUiComponent> | The action to be executed when the UI component enters edit mode. |