Skip to content

Commit e282fc8

Browse files
authored
feat(ui5-datepicker): introduce required property (#2117)
1 parent f66875a commit e282fc8

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

packages/main/src/DatePicker.js

+13
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,18 @@ const metadata = {
130130
type: CalendarType,
131131
},
132132

133+
/**
134+
* Defines whether the <code>ui5-datepicker</code> is required.
135+
*
136+
* @since 1.0.0-rc.9
137+
* @type {Boolean}
138+
* @defaultvalue false
139+
* @public
140+
*/
141+
required: {
142+
type: Boolean,
143+
},
144+
133145
/**
134146
* Determines whether the <code>ui5-date-picker</code> is displayed as disabled.
135147
*
@@ -647,6 +659,7 @@ class DatePicker extends UI5Element {
647659
"ariaOwns": `${this._id}-responsive-popover`,
648660
"ariaExpanded": this.isOpen(),
649661
"ariaDescription": this.dateAriaDescription,
662+
"ariaRequired": this.required,
650663
};
651664
}
652665

0 commit comments

Comments
 (0)