diff --git a/en/application-dev/reference/arkui-ts/ts-methods-textpicker-dialog.md b/en/application-dev/reference/arkui-ts/ts-methods-textpicker-dialog.md index 7a81a17c79418684213543b1dda4a023a55ba209..03ff3185148fd491cf5ed04c84a6fb1cd47c6d5e 100644 --- a/en/application-dev/reference/arkui-ts/ts-methods-textpicker-dialog.md +++ b/en/application-dev/reference/arkui-ts/ts-methods-textpicker-dialog.md @@ -1,6 +1,6 @@ # Text Picker Dialog Box -> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE** +> **NOTE**
> This component is supported since API version 8. Updates will be marked with a superscript to indicate their earliest API version. You can display a text picker in a dialog box to allow users to select text from the given range. @@ -16,20 +16,20 @@ show(options: TextPickerDialogOptions) Shows a text picker in the given settings. - TextPickerDialogOptions - | Name| Type| Mandatory| Default Value| Description| + | Name | Type | Mandatory | Default Value | Description | | -------- | -------- | -------- | -------- | -------- | - | range | string[] | Yes| - | Data selection range of the picker.| - | selected | number | No| First element| Index value of the selected item in the range.| - | defaultPickerItemHeight | number | No| - | Height of the default selected item in the picker.| - | onAccept | (value: TextPickerResult) => void | No| - | Triggered when the OK button in the dialog box is clicked.| - | onCancel | () => void | No| - | Triggered when the Cancel button in the dialog box is clicked.| - | onChange | (value: TextPickerResult) => void | No| - | Triggered when the selected item in the picker changes.| + | range | string[] | Yes | - | Data selection range of the picker. | + | selected | number | No | First element | Index value of the selected item in the range. | + | defaultPickerItemHeight | number | No | - | Height of the default selected item in the picker. | + | onAccept | (value: TextPickerResult) => void | No | - | Callback invoked when the OK button in the dialog box is clicked. | + | onCancel | () => void | No | - | Triggered when the Cancel button in the dialog box is clicked. | + | onChange | (value: TextPickerResult) => void | No | - | Callback invoked when the selected item in the picker changes. | - TextPickerResult - | Name| Type| Description| + | Name | Type | Description | | -------- | -------- | -------- | - | value | string | Text of the selected item.| - | index | number | Index value of the selected item in the range.| + | value | string | Text of the selected item. | + | index | number | Index value of the selected item in the range. | ## Example