@@ -26,7 +26,7 @@ const metadata = {
26
26
slots : /** @lends sap.ui.webcomponents.main.List.prototype */ {
27
27
28
28
/**
29
- * Defines the <code>ui5-li </code> header.
29
+ * Defines the <code>ui5-list </code> header.
30
30
* <br><br>
31
31
* <b>Note:</b> When <code>header</code> is set, the
32
32
* <code>headerText</code> property is ignored.
@@ -93,8 +93,8 @@ const metadata = {
93
93
/**
94
94
* Defines the mode of the <code>ui5-list</code>.
95
95
* <br><br>
96
- * <b>Note:</b> Avalaible options are <code>None</code>, <code>SingleSelect</code>,
97
- * <code>MultiSelect</code>, and <code>Delete</code>.
96
+ * <b>Note:</b> Available options are <code>None</code>, <code>SingleSelect</code>, <code>SingleSelectBegin </code>,
97
+ * <code>SingleSelectEnd</code>, <code> MultiSelect</code>, and <code>Delete</code>.
98
98
*
99
99
* @type {ListMode }
100
100
* @defaultvalue "None"
@@ -162,6 +162,17 @@ const metadata = {
162
162
busy : {
163
163
type : Boolean ,
164
164
} ,
165
+
166
+ /**
167
+ * Used to externally manipulate the role of the list
168
+ *
169
+ * @private
170
+ */
171
+ _role : {
172
+ type : String ,
173
+ defaultValue : "listbox" ,
174
+ noAttribute : true ,
175
+ } ,
165
176
} ,
166
177
events : /** @lends sap.ui.webcomponents.main.List.prototype */ {
167
178
@@ -227,7 +238,7 @@ const metadata = {
227
238
228
239
/**
229
240
* Fired when selection is changed by user interaction
230
- * in <code>SingleSelect</code> and <code>MultiSelect</code> modes.
241
+ * in <code>SingleSelect</code>, <code>SingleSelectBegin</code>, <code>SingleSelectEnd</code> and <code>MultiSelect</code> modes.
231
242
*
232
243
* @event
233
244
* @param {Array } selectedItems An array of the selected items.
@@ -624,6 +635,10 @@ class List extends UI5Element {
624
635
}
625
636
}
626
637
638
+ focusItem ( item ) {
639
+ item . focus ( ) ;
640
+ }
641
+
627
642
setForwardingFocus ( forwardingFocus ) {
628
643
this . _forwardingFocus = forwardingFocus ;
629
644
}
0 commit comments