Skip to content

Commit

Permalink
feat(ui5-select): introduce required property (#2116)
Browse files Browse the repository at this point in the history
  • Loading branch information
fifoosid committed Aug 19, 2020
1 parent 0e0de82 commit f66875a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/main/src/Select.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
aria-labelledby="{{_id}}-label"
aria-describedby="{{valueStateTextId}}"
aria-disabled="{{isDisabled}}"
aria-required="{{required}}"
@keydown="{{_onkeydown}}"
@keyup="{{_onkeyup}}"
@focusin="{{_onfocusin}}"
Expand Down
12 changes: 12 additions & 0 deletions packages/main/src/Select.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,18 @@ const metadata = {
defaultValue: ValueState.None,
},

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

_text: {
type: String,
noAttribute: true,
Expand Down

0 comments on commit f66875a

Please sign in to comment.