Skip to content

Commit

Permalink
feat(ui5-datepicker): introduce required property (#2117)
Browse files Browse the repository at this point in the history
  • Loading branch information
fifoosid committed Aug 19, 2020
1 parent f66875a commit e282fc8
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packages/main/src/DatePicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,18 @@ const metadata = {
type: CalendarType,
},

/**
* Defines whether the <code>ui5-datepicker</code> is required.
*
* @since 1.0.0-rc.9
* @type {Boolean}
* @defaultvalue false
* @public
*/
required: {
type: Boolean,
},

/**
* Determines whether the <code>ui5-date-picker</code> is displayed as disabled.
*
Expand Down Expand Up @@ -647,6 +659,7 @@ class DatePicker extends UI5Element {
"ariaOwns": `${this._id}-responsive-popover`,
"ariaExpanded": this.isOpen(),
"ariaDescription": this.dateAriaDescription,
"ariaRequired": this.required,
};
}

Expand Down

0 comments on commit e282fc8

Please sign in to comment.