Class HtmxErrorFragment
- Namespace
- Htmx.Components.Models
- Assembly
- Htmx.Components.dll
Describes a user-safe error fragment that the client runtime can place in an error region.
public sealed record HtmxErrorFragment : IEquatable<HtmxErrorFragment>
- Inheritance
-
HtmxErrorFragment
- Implements
- Inherited Members
- Extension Methods
Constructors
HtmxErrorFragment(string, string, string, string?)
Describes a user-safe error fragment that the client runtime can place in an error region.
public HtmxErrorFragment(string Title, string Message, string Kind = "general", string? ComponentId = null)
Parameters
Properties
ComponentId
public string? ComponentId { get; init; }
Property Value
Kind
public string Kind { get; init; }
Property Value
Message
public string Message { get; init; }
Property Value
Title
public string Title { get; init; }
Property Value
Methods
ToHtml()
Renders the fragment as HTML with structured attributes for the client runtime.
public string ToHtml()