Class ActionGroupBuilder
- Namespace
 - Htmx.Components.Models.Builders
 
- Assembly
 - Htmx.Components.dll
 
Builder for creating ActionGroup instances with optional labeling, styling, and contained actions. Action groups provide logical organization of related actions with visual grouping.
public class ActionGroupBuilder : ActionItemsBuilder<ActionGroupBuilder, ActionGroup, ActionGroupConfig>
  - Inheritance
 - 
      
      
      
      ActionGroupBuilder
 
- Inherited Members
 
- Extension Methods
 
Constructors
ActionGroupBuilder(IServiceProvider)
Initializes a new instance of the ActionGroupBuilder with the specified service provider.
public ActionGroupBuilder(IServiceProvider serviceProvider)
  Parameters
serviceProviderIServiceProviderThe service provider for dependency injection
Methods
BuildImpl()
Builds the final ActionGroup instance with all configured properties and actions. This method is called internally to create the final result.
protected override Task<ActionGroup> BuildImpl()
  Returns
- Task<ActionGroup>
 A task that represents the asynchronous build operation, containing the built ActionGroup
WithClass(string)
Sets CSS classes to apply to the action group container. Used for styling and layout customization of the group.
public ActionGroupBuilder WithClass(string cssClass)
  Parameters
cssClassstringThe CSS class names to apply
Returns
- ActionGroupBuilder
 The current builder instance for method chaining
WithIcon(string)
Sets the icon for the action group. Icons provide visual identification and can be CSS classes or icon font references.
public ActionGroupBuilder WithIcon(string icon)
  Parameters
iconstringThe icon identifier (CSS class, font icon, etc.)
Returns
- ActionGroupBuilder
 The current builder instance for method chaining
WithLabel(string)
Sets the display label for the action group. The label is typically shown as a header or title for the grouped actions.
public ActionGroupBuilder WithLabel(string label)
  Parameters
labelstringThe text label to display for the group
Returns
- ActionGroupBuilder
 The current builder instance for method chaining