[]
        
(Showing Draft Content)

C1.Blazor.Input.C1TextBox

C1TextBox Class

Represents a control that can be used to display and edit plain text,

Namespace: C1.Blazor.Input
Assembly: C1.Blazor.Input.dll
Syntax
public class C1TextBox : C1View, IComponent, IHandleAfterRender, IHandleEvent, IDisposable, IDependencyObject

Constructors

Name Description
C1TextBox()

Initializes a new instance of the C1TextBox class.

Fields

Name Description
BrowserAutocompleteProperty
IsReadOnlyProperty

Identifies the IsReadOnly dependency property.

MaxLengthProperty
MaxProperty
MinProperty
PlaceholderProperty
StepProperty
StopOnClickPropagationProperty
TextProperty
TypeProperty

Properties

Name Description
BrowserAutocomplete

Gets or sets whether the browser will show suggestions based on previous entered texts.

FinishedTextChange

Gets or sets the callback called when the text changing is finished.

IsPlaceholderVisible

Gets a value indicating whether the placeholder is visible.

IsReadOnly

Gets or sets whether the textbox is read-only.

KeyPressed

Gets or sets the callback called when a key is pressed.

Max

Gets or sets the max value accepted in the text box.

MaxLength

Gets or sets the maximum number of characters allowed in the text box.

Min

Gets or sets the min value accepted in the text box.

Placeholder

Gets or sets the placeholder displayed when there is no entered text.

Step

Gets or sets the kind of step accepted by the text box when the Type is numeric.

StopOnClickPropagation

Stop the onclick event from outside

Tag

Gets or sets an arbitrary object value that can be used to store custom information about this element.

Text

Gets or sets the text displayed.

TextChanged

Gets or sets the callback called when the text changed.

Type

Gets or sets the type of text to be entered.

UpdatingFromUI

Methods

Name Description
BuildRenderTree(RenderTreeBuilder)
Dispose(bool)
FocusAsync()

Sets the focus.

GetActualType()
GetAdditionalAttributes()
GetInputStyle()
InitializeAsync()

This method is called when the component is initialized.

OnAfterRender(bool)
OnInitialized()
OnTextChangedAsync(string)
OnTextPropertyChanged(string, string)
Select(int, int)

Selects the text between the specified start and length.