From 8bf87497cbe53c28ac174e70146aea7047aea93d Mon Sep 17 00:00:00 2001 From: king_he <6384784@qq.com> Date: Tue, 28 Jun 2022 02:27:44 +0000 Subject: [PATCH] update en/application-dev/reference/arkui-ts/ts-methods-datepicker-dialog.md. Signed-off-by: king_he <6384784@qq.com> --- .../arkui-ts/ts-methods-datepicker-dialog.md | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/en/application-dev/reference/arkui-ts/ts-methods-datepicker-dialog.md b/en/application-dev/reference/arkui-ts/ts-methods-datepicker-dialog.md index 0a323a7abe..5d6478b3a8 100644 --- a/en/application-dev/reference/arkui-ts/ts-methods-datepicker-dialog.md +++ b/en/application-dev/reference/arkui-ts/ts-methods-datepicker-dialog.md @@ -1,6 +1,6 @@ # Date 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 date picker in a dialog box to allow users to select a date from the given range. @@ -13,18 +13,18 @@ None show(options?: DatePickerDialogOptions) -Defines and displays a date picker dialog box. +Displays a date picker dialog box. - options parameters - | Name| Type| Mandatory| Default Value| Description| + | Name | Type | Mandatory | Default Value | Description | | -------- | -------- | -------- | -------- | -------- | - | start | Date | No| Date('1970-1-1') | Start date of the picker.| - | end | Date | No| Date('2100-12-31') | End date of the picker.| - | selected | Date | No| Current system date| Date of the selected item.| - | lunar | boolean | No| false | Whether to display the lunar calendar.| - | onAccept | (value: [DatePickerResult](ts-basic-components-datepicker.md#DatePickerResult)) => 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: [DatePickerResult](ts-basic-components-datepicker.md#DatePickerResult)) => void | No| - | Triggered when the selected item in the picker changes.| + | start | Date | No | Date('1970-1-1') | Start date of the picker. | + | end | Date | No | Date('2100-12-31') | End date of the picker. | + | selected | Date | No | Current system date | Date of the selected item. | + | lunar | boolean | No | false | Whether to display the lunar calendar. | + | onAccept | (value: [DatePickerResult](ts-basic-components-datepicker.md#DatePickerResult)) => 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: [DatePickerResult](ts-basic-components-datepicker.md#DatePickerResult)) => void | No | - | Callback invoked when the selected item in the picker changes. | ## Example -- GitLab