TextInput
A custom text input web component for BIM applications. HTML tag: bim-text-input
Extends
LitElement
Implements
Properties
debounce?
optionaldebounce:number
Represents the debounce property of the TextInput component.
This property is used to control the delay in milliseconds before the input event is fired.
The input event is debounced to prevent excessive event firing when the user types rapidly.
Default
undefined
Example
<bim-text-input debounce="500"></bim-text-input>
disabled
disabled:
boolean=false
Represents the disabled property of the TextInput component.
This property is used to disable the input field.
When set to true, the input field will be disabled and the user will not be able to interact with it.
Default
false
Example
<bim-text-input disabled></bim-text-input>
icon?
optionalicon:string
Represents the icon property of the TextInput component. This property is used to display an icon next to the input field.
Example
<bim-text-input icon="material-symbols:search"></bim-text-input>
label?
optionallabel:string
Represents the label property of the TextInput component. This property is used to display a label above or next to the input field.
Example
<bim-text-input label="Name"></bim-text-input>
Implementation of
HasName.label
name?
optionalname:string
Represents the name property of the TextInput component. This property is used to uniquely identify the input field within a form or group of inputs.
Example
<bim-text-input name="username"></bim-text-input>
Implementation of
HasName.name
placeholder?
optionalplaceholder:string
Represents the placeholder property of the TextInput component. This property is used to display a hint or a placeholder text inside the input field. The placeholder text is displayed when the input field is empty and loses focus.
Example
<bim-text-input placeholder="Enter your name.."></bim-text-input>
resize
resize:
"inline"|"none"|"vertical"|"both"|"horizontal"|"block"="vertical"
Represents the resize property of the TextInput component. This property controls how the textarea can be resized. Possible values: "none", "both", "horizontal", "vertical", "block", "inline"
Default
"vertical"
Example
<bim-text-input resize="both"></bim-text-input>
value
value:
string=""
Represents the value property of the TextInput component. This property is used to get or set the current value of the input field.