BcInputComponentBase
Description
Inherits BcComponentBase. The BcInputComponentBase additionally provides functionality to hold and validate values. It also includes typical input component features such as readonly and disabled states.
Cascading Parameters
EditContext
EditContext?
When the EditContext is set, it integrates with the component's validation functionality.
Parameters
Id
Guid
Specifies the unique identifier for the component.
Class
string
Defines the CSS class applied to the component.
Style
string
Sets the inline CSS styles for the component.
AdditionalAttributes
Dictionary
Allows passing additional attributes to the component.
Value
T
Holds the current value of the input component.
ValueChanged
EventCallback < T >
Triggered when the value of the component changes.
ValueExpression
Func < T >
Represents the expression that binds the component's value.
ColorFormatingState
StylesColorFormatingState
Defines the visual state of the component based on color (e.g., success, error, warning).
Disabled
bool
Indicates whether the component is disabled.
ReadOnly
bool
Specifies if the component is in read-only mode.
OnFocusIn
bool
Event triggered when the component gains focus.
OnFocusOut
bool
Event triggered when the component loses focus.
Properties
InitialValue
BcStyleBuilder
Stores the initial value of the component before any modifications.
IsDirty
BcClassBuilder
Indicates if the value of the component has changed from its initial state.
IsTouched
BcClassBuilder
Tracks whether the component has been interacted with.
ValidationRequired
BcClassBuilder
Determines if validation is required for the component.
FieldIdentifier
FieldIdentifier?
Represents the unique identifier for the validation field.
Methods
Executes logic before rendering the component.
Retrieves validation messages for the component.
Returns the field identifier associated with the component.
Notifies the system that the component's value has changed.
Determines the component's current validation and display state.