File tree 3 files changed +20
-0
lines changed
3 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,15 @@ const metadata = {
43
43
value : {
44
44
type : String ,
45
45
} ,
46
+
47
+ /**
48
+ * Defines the stable selector that you can use via getStableDomRef method.
49
+ * @public
50
+ * @since 1.0.0-rc.10
51
+ */
52
+ stableDomRef : {
53
+ type : String ,
54
+ } ,
46
55
} ,
47
56
slots : {
48
57
"default" : {
Original file line number Diff line number Diff line change @@ -243,6 +243,15 @@ const metadata = {
243
243
* Once the drop-down is opened, you can use the <code>UP</code> and <code>DOWN</code> arrow keys
244
244
* to navigate through the available options and select one by pressing the <code>Space</code> or <code>Enter</code> keys.
245
245
* <br>
246
+ *
247
+ * <h3>Stable DOM Refs</h3>
248
+ *
249
+ * In the context of <code>ui5-select</code>, you can provide a custom stable DOM ref for:
250
+ * <ul>
251
+ * <li>Every <code>ui5-option</code> that you provide.
252
+ * Example: <code><ui5-option stable-dom-ref="option1"></ui5-option></code></li>
253
+ * </ul>
254
+ *
246
255
* <h3>ES6 Module Import</h3>
247
256
* <code>import "@ui5/webcomponents/dist/Select";</code>
248
257
* <br>
@@ -361,6 +370,7 @@ class Select extends UI5Element {
361
370
value : opt . value ,
362
371
textContent : opt . textContent ,
363
372
id : opt . _id ,
373
+ stableDomRef : opt . stableDomRef ,
364
374
} ;
365
375
} ) ;
366
376
Original file line number Diff line number Diff line change 51
51
icon =" {{ this.icon }} "
52
52
?selected =" {{ this.selected }} "
53
53
?aria-selected =" {{ this.selected }} "
54
+ data-ui5-stable =" {{ this.stableDomRef }} "
54
55
>
55
56
{{ this.textContent }}
56
57
</ui5-li >
You can’t perform that action at this time.
0 commit comments