Interface IModalButtonFactory
Factory interface for creating interactive button components for modal dialogs.
Encapsulates the construction of modal buttons from serialized component data.
Namespace: Serenity.Modal.Application.Interfaces.Factories
Assembly: Serenity.Modal.Application.dll
Syntax
public interface IModalButtonFactory
Methods
CreateModalButtons(List<SerializedComponentData>, IUiThemeDefinition)
Creates interactive button components for a modal dialog.
Generates buttons with associated event handlers and submit actions based on provided data.
Declaration
List<IUiInteractable> CreateModalButtons(List<SerializedComponentData> buttonsData, IUiThemeDefinition theme)
Parameters
| Type | Name | Description |
|---|---|---|
| List<SerializedComponentData> | buttonsData | The list of button configuration data. |
| IUiThemeDefinition | theme | The UI theme definition for styling the buttons. |
Returns
| Type | Description |
|---|---|
| List<IUiInteractable> | A list of created interactive UI button components. |