Parameters
| Property | Type | Required | Description |
|---|---|---|---|
| title | String | No | Dialog title |
| message | String | No | Dialog message |
| placeholder | String | No | Input placeholder text |
| align | String | No | Text alignment: left, center, right |
| okButtonText | String | No | OK button text |
| cancelButtonText | String | No | Cancel button text |
| success | Function | No | Callback with result |
Success Callback
| Property | Type | Description |
|---|---|---|
| ok | Boolean | true if user tapped OK |
| inputValue | String | The text entered by user |
Code Example
Related APIs
my.confirm
Show confirmation dialog
my.alert
Show alert dialog