Skip to content

Commit f66875a

Browse files
authored
feat(ui5-select): introduce required property (#2116)
1 parent 0e0de82 commit f66875a

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

packages/main/src/Select.hbs

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
aria-labelledby="{{_id}}-label"
99
aria-describedby="{{valueStateTextId}}"
1010
aria-disabled="{{isDisabled}}"
11+
aria-required="{{required}}"
1112
@keydown="{{_onkeydown}}"
1213
@keyup="{{_onkeyup}}"
1314
@focusin="{{_onfocusin}}"

packages/main/src/Select.js

+12
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,18 @@ const metadata = {
145145
defaultValue: ValueState.None,
146146
},
147147

148+
/**
149+
* Defines whether the <code>ui5-select</code> is required.
150+
*
151+
* @since 1.0.0-rc.9
152+
* @type {Boolean}
153+
* @defaultvalue false
154+
* @public
155+
*/
156+
required: {
157+
type: Boolean,
158+
},
159+
148160
_text: {
149161
type: String,
150162
noAttribute: true,

0 commit comments

Comments
 (0)