Commit e53301d 1 parent e84c2e5 commit e53301d Copy full SHA for e53301d
File tree 5 files changed +25
-10
lines changed
5 files changed +25
-10
lines changed Original file line number Diff line number Diff line change @@ -164,6 +164,14 @@ abstract class ListItem extends ListItemBase {
164
164
@property ( )
165
165
highlight : `${Highlight } ` = "None" ;
166
166
167
+ /**
168
+ * Defines the selected state of the component.
169
+ * @default false
170
+ * @public
171
+ */
172
+ @property ( { type : Boolean } )
173
+ declare selected : boolean ;
174
+
167
175
/**
168
176
* Used to define the role of the list item.
169
177
* @private
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ class ListItemBase extends UI5Element implements ITabbable {
48
48
/**
49
49
* Defines the selected state of the component.
50
50
* @default false
51
- * @public
51
+ * @private
52
52
*/
53
53
@property ( { type : Boolean } )
54
54
selected = false ;
Original file line number Diff line number Diff line change 1
1
import customElement from "@ui5/webcomponents-base/dist/decorators/customElement.js" ;
2
- import property from "@ui5/webcomponents-base/dist/decorators/property.js" ;
3
2
import litRender from "@ui5/webcomponents-base/dist/renderer/LitRenderer.js" ;
4
3
import type { ClassMap } from "@ui5/webcomponents-base/dist/types.js" ;
5
4
import menuSeparatorTemplate from "./generated/templates/MenuSeparatorTemplate.lit.js" ;
@@ -27,14 +26,6 @@ import type { IMenuItem } from "./Menu.js";
27
26
} )
28
27
29
28
class MenuSeparator extends ListItemBase implements IMenuItem {
30
- /**
31
- * **Note:** This property is inherited and not supported. If set, it won't take any effect.
32
- * @default false
33
- * @public
34
- */
35
- @property ( { type : Boolean } )
36
- declare selected : boolean ;
37
-
38
29
get isSeparator ( ) {
39
30
return true ;
40
31
}
Original file line number Diff line number Diff line change @@ -90,6 +90,14 @@ class Option extends ListItemBase implements IOption {
90
90
@property ( )
91
91
tooltip ?: string ;
92
92
93
+ /**
94
+ * Defines the selected state of the component.
95
+ * @default false
96
+ * @public
97
+ */
98
+ @property ( { type : Boolean } )
99
+ declare selected : boolean ;
100
+
93
101
get displayIconBegin ( ) : boolean {
94
102
return ! ! this . icon ;
95
103
}
Original file line number Diff line number Diff line change @@ -72,6 +72,14 @@ class OptionCustom extends ListItemBase implements IOption {
72
72
@property ( )
73
73
tooltip ?: string ;
74
74
75
+ /**
76
+ * Defines the selected state of the component.
77
+ * @default false
78
+ * @public
79
+ */
80
+ @property ( { type : Boolean } )
81
+ declare selected : boolean ;
82
+
75
83
get effectiveDisplayText ( ) {
76
84
return this . displayText || this . textContent || "" ;
77
85
}
You can’t perform that action at this time.
0 commit comments