File tree 3 files changed +23
-1
lines changed
3 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -338,6 +338,12 @@ const metadata = {
338
338
* <li> Backspace - deletes the token and focus the next token. </li>
339
339
* </ul>
340
340
*
341
+ * In the context of <code>ui5-multi-combobox</code>, you can provide a custom stable DOM ref for:
342
+ * <ul>
343
+ * <li>Every <code>ui5-mcb-item</code> that you provide.
344
+ * Example: <code><ui5-mcb-item stable-dom-ref="item1"></ui5-mcb-item></code></li>
345
+ * </ul>
346
+ *
341
347
* <h3>ES6 Module Import</h3>
342
348
*
343
349
* <code>import "@ui5/webcomponents/dist/MultiComboBox";</code>
Original file line number Diff line number Diff line change @@ -13,6 +13,15 @@ const metadata = {
13
13
* @public
14
14
*/
15
15
selected : { type : Boolean } ,
16
+
17
+ /**
18
+ * Defines the stable selector that you can use via getStableDomRef method.
19
+ * @public
20
+ * @since 1.0.0-rc.10
21
+ */
22
+ stableDomRef : {
23
+ type : String ,
24
+ } ,
16
25
} ,
17
26
} ;
18
27
Original file line number Diff line number Diff line change 67
67
68
68
<ui5-list separators =" None" mode =" MultiSelect" class =" ui5-multi-combobox-all-items-list" >
69
69
{{ #each _filteredItems }}
70
- <ui5-li type =" {{ ../_listItemsType }} " ?selected ={{ this.selected }} data-ui5-token-id =" {{ this._id }} " >{{ this.text }} </ui5-li >
70
+ <ui5-li
71
+ type =" {{ ../_listItemsType }} "
72
+ ?selected ={{ this.selected }}
73
+ data-ui5-token-id =" {{ this._id }} "
74
+ data-ui5-stable =" {{ this.stableDomRef }} "
75
+ >
76
+ {{ this.text }}
77
+ </ui5-li >
71
78
{{ /each }}
72
79
</ui5-list >
73
80
You can’t perform that action at this time.
0 commit comments