TextInputBase
Assembly: ServiceStack.Blazor.dll
View Source
public abstract class TextInputBase : ApiComponentBase
Properties
Id
View Source
public virtual string Id { get; set; }
Size
View Source
public string Size { get; set; }
placeholder
View Source
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
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
public string Label { get; set; }
LabelClass
Class for Input Label
View Source
public string LabelClass { get; set; }
FieldClass
Class for outer container element
View Source
public string FieldClass { get; set; }
type
View Source
public string type { get; set; }
UseType
View Source
protected virtual string UseType { get; }
IsCheckbox
View Source
protected bool IsCheckbox { get; }
IsSelect
View Source
protected bool IsSelect { get; }
HasErrorField
View Source
public bool HasErrorField { get; }
ErrorField
View Source
public ResponseError? ErrorField { get; }
ErrorFieldMessage
View Source
public string ErrorFieldMessage { get; }
UseLabel
View Source
protected virtual string UseLabel { get; }
UsePlaceholder
View Source
protected virtual string UsePlaceholder { get; }
UseHelp
View Source
protected virtual string UseHelp { get; }
AdditionalAttributes
Gets or sets a collection of additional attributes that will be applied to the created element.
View Source
public IReadOnlyDictionary<string, object>? AdditionalAttributes { get; set; }
IncludeAttributes
View Source
public virtual IReadOnlyDictionary<string, object>? IncludeAttributes { get; }
FieldIdentifier
Gets the ServiceStack.Blazor.Components.TextInputBase.FieldIdentifier for the bound value.
View Source
protected AspNetCore.Components.Forms.FieldIdentifier FieldIdentifier { get; set; }
Inherited Properties
CascadingStatus
The ResponseStatus injected by CascadingValue
View Source
public ResponseStatus? CascadingStatus { get; set; }
ExplicitStatus
Assign ResponseStatus to component and ignore CascadingStatus injected by CascadingValue
View Source
public ResponseStatus? ExplicitStatus { get; set; }
IgnoreCascadingStatus
Whether to ignore CascadingStatus
View Source
protected bool IgnoreCascadingStatus { get; set; }
IsError
If the ResponseStatus assigned to this component is in an Error State
View Source
protected bool IsError { get; }
Status
Directly assing a Response Status to this component
View Source
public ResponseStatus? Status { get; set; }
UseStatus
The ResponseStatus assinged to this compontent
View Source
protected ResponseStatus? UseStatus { get; }
Fields
validationStateChangedHandler
View Source
protected EventHandler<AspNetCore.Components.Forms.ValidationStateChangedEventArgs> validationStateChangedHandler
hasInitializedParameters
View Source
protected bool hasInitializedParameters
previousParsingAttemptFailed
View Source
protected bool previousParsingAttemptFailed
nullableUnderlyingType
View Source
protected Type? nullableUnderlyingType
Methods
StateClasses(String, String)
View Source
protected override string StateClasses(string valid = null, string invalid = null)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | valid |
System.String | invalid |
CssClass(String, String)
View Source
protected override string CssClass(string valid = null, string invalid = null)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | valid |
System.String | invalid |
OnValidateStateChanged(Object, AspNetCore.Components.Forms.ValidationStateChangedEventArgs)
View Source
protected void OnValidateStateChanged(object sender, AspNetCore.Components.Forms.ValidationStateChangedEventArgs eventArgs)
Parameters
Type | Name |
---|---|
System.Object | sender |
Microsoft.AspNetCore.Components.Forms.ValidationStateChangedEventArgs | eventArgs |
UpdateAdditionalValidationAttributes()
View Source
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
protected override string CssClass(string valid = null, string invalid = null)
Returns
System.String
Parameters
Type | Name | Description |
---|---|---|
System.String | valid | css 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
protected virtual string StateClasses(string valid = null, string invalid = null)
Returns
System.String
Parameters
Type | Name | Description |
---|---|---|
System.String | valid | css classes to include when valid |
|
| System.String
| invalid | css classes to include when invalid
|