Skip to main content

TextInputBase

Assembly: ServiceStack.Blazor.dll
View Source
Declaration
public abstract class TextInputBase : ApiComponentBase

Properties

Id

View Source
Declaration
public virtual string Id { get; set; }

Size

View Source
Declaration
public string Size { get; set; }

placeholder

View Source
Declaration
public string placeholder { get; set; }

Help

Additional help text for Input Control, defaults to split Pascal Case Id. Set to empty string "" to hide

View Source
Declaration
public string Help { get; set; }

Label

Label assigned to the Input Control, defaults to split Pascal Case Id. Set to empty string "" to hide

View Source
Declaration
public string Label { get; set; }

LabelClass

Class for Input Label

View Source
Declaration
public string LabelClass { get; set; }

FieldClass

Class for outer container element

View Source
Declaration
public string FieldClass { get; set; }

type

View Source
Declaration
public string type { get; set; }

UseType

View Source
Declaration
protected virtual string UseType { get; }

IsCheckbox

View Source
Declaration
protected bool IsCheckbox { get; }

IsSelect

View Source
Declaration
protected bool IsSelect { get; }

HasErrorField

View Source
Declaration
public bool HasErrorField { get; }

ErrorField

View Source
Declaration
public ResponseError? ErrorField { get; }

ErrorFieldMessage

View Source
Declaration
public string ErrorFieldMessage { get; }

UseLabel

View Source
Declaration
protected virtual string UseLabel { get; }

UsePlaceholder

View Source
Declaration
protected virtual string UsePlaceholder { get; }

UseHelp

View Source
Declaration
protected virtual string UseHelp { get; }

AdditionalAttributes

Gets or sets a collection of additional attributes that will be applied to the created element.

View Source
Declaration
public IReadOnlyDictionary<string, object>? AdditionalAttributes { get; set; }

IncludeAttributes

View Source
Declaration
public virtual IReadOnlyDictionary<string, object>? IncludeAttributes { get; }

FieldIdentifier

Gets the ServiceStack.Blazor.Components.TextInputBase.FieldIdentifier for the bound value.

View Source
Declaration
protected AspNetCore.Components.Forms.FieldIdentifier FieldIdentifier { get; set; }

Inherited Properties

CascadingStatus

The ResponseStatus injected by CascadingValue

View Source
Declaration
public ResponseStatus? CascadingStatus { get; set; }

ExplicitStatus

Assign ResponseStatus to component and ignore CascadingStatus injected by CascadingValue

View Source
Declaration
public ResponseStatus? ExplicitStatus { get; set; }

IgnoreCascadingStatus

Whether to ignore CascadingStatus

View Source
Declaration
protected bool IgnoreCascadingStatus { get; set; }

IsError

If the ResponseStatus assigned to this component is in an Error State

View Source
Declaration
protected bool IsError { get; }

Status

Directly assing a Response Status to this component

View Source
Declaration
public ResponseStatus? Status { get; set; }

UseStatus

The ResponseStatus assinged to this compontent

View Source
Declaration
protected ResponseStatus? UseStatus { get; }

Fields

validationStateChangedHandler

View Source
Declaration
protected EventHandler<AspNetCore.Components.Forms.ValidationStateChangedEventArgs> validationStateChangedHandler

hasInitializedParameters

View Source
Declaration
protected bool hasInitializedParameters

previousParsingAttemptFailed

View Source
Declaration
protected bool previousParsingAttemptFailed

nullableUnderlyingType

View Source
Declaration
protected Type? nullableUnderlyingType

Methods

StateClasses(String, String)

View Source
Declaration
protected override string StateClasses(string valid = null, string invalid = null)
Returns

System.String

Parameters
TypeName
System.Stringvalid
System.Stringinvalid

CssClass(String, String)

View Source
Declaration
protected override string CssClass(string valid = null, string invalid = null)
Returns

System.String

Parameters
TypeName
System.Stringvalid
System.Stringinvalid

OnValidateStateChanged(Object, AspNetCore.Components.Forms.ValidationStateChangedEventArgs)

View Source
Declaration
protected void OnValidateStateChanged(object sender, AspNetCore.Components.Forms.ValidationStateChangedEventArgs eventArgs)
Parameters
TypeName
System.Objectsender
Microsoft.AspNetCore.Components.Forms.ValidationStateChangedEventArgseventArgs

UpdateAdditionalValidationAttributes()

View Source
Declaration
protected void UpdateAdditionalValidationAttributes()

Inherited Methods

CssClass(String, String)

Return any user-defined classes along with optional classes for when component is in a valid or invalid state

View Source
Declaration
protected override string CssClass(string valid = null, string invalid = null)
Returns

System.String

Parameters
TypeNameDescription
System.Stringvalidcss classes to include when valid

| | System.String | invalid | css classes to include when invalid

|

StateClasses(String, String)

Helper to return classes for when component is in a valid or invalid state

View Source
Declaration
protected virtual string StateClasses(string valid = null, string invalid = null)
Returns

System.String

Parameters
TypeNameDescription
System.Stringvalidcss classes to include when valid

| | System.String | invalid | css classes to include when invalid

|