Class ActionModel
- Namespace
 - Htmx.Components.Models
 
- Assembly
 - Htmx.Components.dll
 
An action item with additional attributes support, primarily designed for HTMX attributes. This class extends the basic action item with a dictionary of custom attributes and active state tracking.
public class ActionModel : ActionItem, IActionItem
  - Inheritance
 - 
      
      
      ActionModel
 
- Implements
 
- Inherited Members
 
- Extension Methods
 
Properties
Attributes
Gets the custom attributes to apply to the action element, typically used for HTMX attributes.
public Dictionary<string, string> Attributes { get; init; }
  Property Value
IsActive
Gets or sets a value indicating whether this action is currently active or selected.
public bool IsActive { get; set; }