android-fullscreen-modeWhether to enter the full-screen input mode when in landscape screen, in which the keyboard and input box will take up the entire screen
confirm-typeThe type of confirm button
disabledInteraction enabled
input-filterFilter the input content and process it in the form of regular expressions
ios-auto-correctAuto correct input content on iOS
ios-spell-checkCheck spelling issue on iOS
maxlengthMax input length
placeholderPlaceholder
readonlyReadonly
show-soft-input-on-focusShow soft input keyboard while focused
typeInput content type
Frontend can bind corresponding event callbacks to listen for runtime behaviors of the element, as shown below.
bindblur| Field | Type | Optional | Default | Platforms | Since | Description |
|---|---|---|---|---|---|---|
| value | string | No | – | Android iOS Harmony 3.4 | 3.4 | Input content |
Blurred
bindconfirm| Field | Type | Optional | Default | Platforms | Since | Description |
|---|---|---|---|---|---|---|
| value | string | No | – | Android iOS Harmony 3.4 | 3.4 | Input content |
Confirm button clicked
bindfocus| Field | Type | Optional | Default | Platforms | Since | Description |
|---|---|---|---|---|---|---|
| value | string | No | – | Android iOS Harmony 3.4 | 3.4 | Input content |
Focused
bindinput| Field | Type | Optional | Default | Platforms | Since | Description |
|---|---|---|---|---|---|---|
| isComposing | boolean | Yes | – | Android iOS Harmony 3.4 | 3.4 | Is composing or not |
| selectionEnd | number | No | – | Android iOS Harmony 3.4 | 3.4 | The end position of the selection |
| selectionStart | number | No | – | Android iOS Harmony 3.4 | 3.4 | The start position of the selection |
| value | string | No | – | Android iOS Harmony 3.4 | 3.4 | Input content |
Input content changed
bindselection| Field | Type | Optional | Default | Platforms | Since | Description |
|---|---|---|---|---|---|---|
| selectionEnd | number | No | – | Android iOS Harmony 3.4 | 3.4 | The end position of the selection |
| selectionStart | number | No | – | Android iOS Harmony 3.4 | 3.4 | The start position of the selection |
Input selection changed
Frontend can invoke component methods via the SelectorQuery API.
blurRelease focus
focusRequire focus
getValueGet input content
setSelectionRangeSet selection range
setValueSet input content