
Input
Enter characters with the mouse or keyboard
Provides basic text entry components
Demo
You can set the IsAutoFocus
whether to automatically get focus, and the components that are last executed when multiple text boxes set auto-focus will get focus
Change the color of the text border by setting Color
Demo
Using OnEnterAsync
OnEscAsync
callback delegates to respond to the Enter ESC keystrokes
Demo
Execute @ref.SelectAllTextAsync() method select the all text
Displays the value of variables within the component
Demo
Binding variables within a component, data is automatically synchronized
Demo
when BootstrapInput
components turn on bidirectional binding, the Display/DisplayName
label value is automatically fetched based on the bound Model
property value and appears as a pre-Label
, by DisplayText
Properties can customize the display of pre-labels, or turn off the display of pre-labels through the ShowLabel
property
Set the DisplayText
value to custom label
The value of DisplayText
is displayed when ShowLabel
is true
, regardless of whether the value is set
The value of DisplayText
is not displayed when the ShowLabel
is false
Check data validity and prompt automatically based on custom validation rules
Demo
By setting the property type
value to password
the password input box that is blocked by *
after entering text
Demo
In order to support more text box properties this component can be written directly to type='email'
type='number'
type='phone'
and so onhtml5
all property values supported by the new standard, the component does not set the type
value using the default type='text'
BootstrapInput
component bidirectional binding value is generic, in this case a two-way binding of an int type value
Demo
When you set the IsDisabled
property value to true
, the component suppresses input
Demo
When you set the FormatString
property value to yyyy-MM-dd
, the component displays a time format of the year and day
Demo
FormatString
Formatter
The BootstrapInput
component binds byte[]
array and formats it as an example of base64
encoded string
Formatter
Use the BootstrapPassword
component
Demo
Use IsTrim="true"
to automatically trim white space when entering content
Demo
The front and back spaces in the component will be trimmed when set IsTrim
to true
Attributes
B station related video link
交流群