Class UiToggleableActions
Implementation of IUiToggleableActions to handle UI toggleable actions.
Inherited Members
Namespace: Serenity.Ui.Application.Components
Assembly: Serenity.Ui.Application.dll
Syntax
public class UiToggleableActions : UiInteractableComponentActions, IUiToggleableActions, IUiInteractableActions, IUiComponentActions, IComponentActions
Constructors
UiToggleableActions()
Initializes a new instance of the UiToggleableActions class with default values.
Declaration
public UiToggleableActions()
UiToggleableActions(Action<IUiComponent>)
Initializes a new instance of the UiToggleableActions class with the specified actions.
Declaration
public UiToggleableActions(Action<IUiComponent> onToggle = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Action<IUiComponent> | onToggle | The action to be executed when the UI component is toggled. |
Properties
OnToggle
The action to be invoked when the component is toggled.
Declaration
public Action<IUiComponent> OnToggle { get; set; }
Property Value
| Type | Description |
|---|---|
| Action<IUiComponent> | The action to be executed when the component is toggled. |