From bf2b6af9f41b3484d403f863fe62d0aa9eaefe1e Mon Sep 17 00:00:00 2001 From: Filip Siderov Date: Wed, 19 Aug 2020 14:04:13 +0300 Subject: [PATCH] feat(ui5-datepicker): introduce required property (#2117) --- packages/main/src/DatePicker.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/packages/main/src/DatePicker.js b/packages/main/src/DatePicker.js index 2762b9b9daf7..af1b1431cb50 100644 --- a/packages/main/src/DatePicker.js +++ b/packages/main/src/DatePicker.js @@ -130,6 +130,18 @@ const metadata = { type: CalendarType, }, + /** + * Defines whether the ui5-datepicker is required. + * + * @since 1.0.0-rc.9 + * @type {Boolean} + * @defaultvalue false + * @public + */ + required: { + type: Boolean, + }, + /** * Determines whether the ui5-date-picker is displayed as disabled. * @@ -647,6 +659,7 @@ class DatePicker extends UI5Element { "ariaOwns": `${this._id}-responsive-popover`, "ariaExpanded": this.isOpen(), "ariaDescription": this.dateAriaDescription, + "ariaRequired": this.required, }; }