Class ActionSetBuilder
- Namespace
- Htmx.Components.Models.Builders
- Assembly
- Htmx.Components.dll
Concrete builder for creating ActionSet instances. Provides functionality to build collections of actions and action groups with fluent configuration.
public class ActionSetBuilder : ActionItemsBuilder<ActionSetBuilder, ActionSet, ActionSetConfig>
- Inheritance
-
ActionSetBuilder
- Inherited Members
- Extension Methods
Constructors
ActionSetBuilder(IServiceProvider)
Initializes a new instance of the ActionSetBuilder with the specified service provider.
public ActionSetBuilder(IServiceProvider serviceProvider)
Parameters
serviceProvider
IServiceProviderThe service provider for dependency injection
Methods
AddGroup(Action<ActionGroupBuilder>)
Adds a new action group to the set using a fluent configuration delegate. Action groups provide logical grouping of related actions with optional styling and labels.
public ActionSetBuilder AddGroup(Action<ActionGroupBuilder> configure)
Parameters
configure
Action<ActionGroupBuilder>A delegate that configures the action group using an ActionGroupBuilder
Returns
- ActionSetBuilder
The current builder instance for method chaining
BuildImpl()
Builds the final ActionSet instance with all configured actions and groups. This method is called internally to create the final result.
protected override Task<ActionSet> BuildImpl()