Table of Contents

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

Dictionary<string, string>

CssClass

Gets the CSS class(es) to apply to this input field.

string? CssClass { get; }

Property Value

string

Id

Gets the unique identifier for this input field.

string Id { get; }

Property Value

string

Kind

Gets the type of input control to render.

InputKind Kind { get; }

Property Value

InputKind

Label

Gets the display label for this input field.

string? Label { get; }

Property Value

string

ModelHandler

Gets the model handler that manages this input's data operations.

ModelHandler ModelHandler { get; }

Property Value

ModelHandler

ObjectValue

Gets or sets the object representation of the input's value.

object? ObjectValue { get; set; }

Property Value

object

Options

Gets the options for select/radio/checkbox inputs.

List<KeyValuePair<string, string>>? Options { get; }

Property Value

List<KeyValuePair<string, string>>

Placeholder

Gets the placeholder text for this input field.

string? Placeholder { get; }

Property Value

string

PropName

Gets the property name that this input represents.

string PropName { get; }

Property Value

string

Value

Gets the string representation of the input's value.

string Value { get; }

Property Value

string