Skip to content

Commit d6a56cb

Browse files
authored
feat(ui5-checkbox): implement required property (#5055)
Fixes: #4895
1 parent 199d974 commit d6a56cb

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

packages/main/src/CheckBox.hbs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
aria-label="{{ariaLabelText}}"
88
aria-labelledby="{{ariaLabelledBy}}"
99
aria-describedby="{{ariaDescribedBy}}"
10+
aria-required="{{required}}"
1011
tabindex="{{tabIndex}}"
1112
@mousedown="{{_onmousedown}}"
1213
@mouseup="{{_onmouseup}}"

packages/main/src/CheckBox.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,18 @@ const metadata = {
8484
type: Boolean,
8585
},
8686

87+
/**
88+
* Defines whether the component is required.
89+
*
90+
* @type {boolean}
91+
* @defaultvalue false
92+
* @public
93+
* @since 1.3.0
94+
*/
95+
required: {
96+
type: Boolean,
97+
},
98+
8799
/**
88100
* Defines whether the component is displayed as partially checked.
89101
* <br><br>

0 commit comments

Comments
 (0)