sud.showKeyboard
JS
sud.showKeyboard(Object object)Shows the keyboard.
Parameters
- Object object: The input parameters. See the table below for the specific properties.
Properties of object:
| Property | Type | Required | Description |
|---|---|---|---|
| defaultValue | string | No | The default value shown in the keyboard input field. Defaults to an empty string |
| maxLength | number | No | The maximum length of the text in the keyboard. Defaults to 100 |
| multiple | boolean | No | Whether multi-line input is enabled. Defaults to false |
| confirmHold | boolean | No | Whether the keyboard stays visible when confirm is tapped. false: hide; true: keep visible. Defaults to true |
| confirmType | string | No | The type of the confirm button in the bottom-right corner of the keyboard. Supported values are done, next, search, go, and send. Defaults to done. See the figure below for the valid values |
| success | function | No | Callback function for a successful API call |
| fail | function | No | Callback function for a failed API call |
| complete | function | No | Callback function invoked when the API call completes |
Valid values for confirmType:
| Value | Description |
|---|---|
| done | Done |
| next | Next |
| search | Search |
| go | Go |
| send | Send |
