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 authored and ilhan007 committed Nov 5, 2020
1 parent 69abc87 commit bf2b6af
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 bf2b6af

Please sign in to comment.