We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f66875a commit e282fc8Copy full SHA for e282fc8
packages/main/src/DatePicker.js
@@ -130,6 +130,18 @@ const metadata = {
130
type: CalendarType,
131
},
132
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
+
145
/**
146
* Determines whether the <code>ui5-date-picker</code> is displayed as disabled.
147
*
@@ -647,6 +659,7 @@ class DatePicker extends UI5Element {
647
659
"ariaOwns": `${this._id}-responsive-popover`,
648
660
"ariaExpanded": this.isOpen(),
649
661
"ariaDescription": this.dateAriaDescription,
662
+ "ariaRequired": this.required,
650
663
};
651
664
}
652
665
0 commit comments