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, }; }