Interface IInputModel
- Namespace
- Htmx.Components.Models
- Assembly
- Htmx.Components.dll
Represents a single input field.
public interface IInputModel
- Extension Methods
Properties
Attributes
Gets the HTML attributes to apply to this input field.
Dictionary<string, string> Attributes { get; }
Property Value
CssClass
Gets the CSS class(es) to apply to this input field.
string? CssClass { get; }
Property Value
Id
Gets the unique identifier for this input field.
string Id { get; }
Property Value
Kind
Gets the type of input control to render.
InputKind Kind { get; }
Property Value
Label
Gets the display label for this input field.
string? Label { get; }
Property Value
ModelHandler
Gets the model handler that manages this input's data operations.
ModelHandler ModelHandler { get; }
Property Value
ObjectValue
Gets or sets the object representation of the input's value.
object? ObjectValue { get; set; }
Property Value
Options
Gets the options for select/radio/checkbox inputs.
List<KeyValuePair<string, string>>? Options { get; }
Property Value
Placeholder
Gets the placeholder text for this input field.
string? Placeholder { get; }
Property Value
PropName
Gets the property name that this input represents.
string PropName { get; }
Property Value
Value
Gets the string representation of the input's value.
string Value { get; }