File tree 5 files changed +27
-3
lines changed
5 files changed +27
-3
lines changed Original file line number Diff line number Diff line change 14
14
aria-selected =" {{ ariaSelected }} "
15
15
role =" {{ _accInfo.role }} "
16
16
aria-expanded =" {{ _accInfo.ariaExpanded }} "
17
+ title =" {{ title }} "
17
18
aria-level =" {{ _accInfo.ariaLevel }} "
18
19
aria-posinset =" {{ _accInfo.posinset }} "
19
20
aria-setsize =" {{ _accInfo.setsize }} "
Original file line number Diff line number Diff line change @@ -46,6 +46,17 @@ const metadata = {
46
46
type : Boolean ,
47
47
} ,
48
48
49
+ /**
50
+ * Defines the tooltip of the component.
51
+ * @type {string }
52
+ * @defaultvalue ""
53
+ * @private
54
+ * @since 1.0.0-rc.15
55
+ */
56
+ title : {
57
+ type : String ,
58
+ } ,
59
+
49
60
/**
50
61
* Indicates if the list item is actionable, e.g has hover and pressed effects.
51
62
*
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ const metadata = {
21
21
type : HTMLElement ,
22
22
} ,
23
23
"default" : {
24
- propertyName : "title " ,
24
+ propertyName : "titleText " ,
25
25
} ,
26
26
} ,
27
27
} ;
@@ -59,11 +59,11 @@ class SuggestionListItem extends StandardListItem {
59
59
60
60
onBeforeRendering ( ...params ) {
61
61
super . onBeforeRendering ( ...params ) ;
62
- this . hasTitle = ! ! this . title . length ;
62
+ this . hasTitle = ! ! this . titleText . length ;
63
63
}
64
64
65
65
get effectiveTitle ( ) {
66
- return this . title . filter ( node => node . nodeType !== Node . COMMENT_NODE ) . map ( el => el . textContent ) . join ( "" ) ;
66
+ return this . titleText . filter ( node => node . nodeType !== Node . COMMENT_NODE ) . map ( el => el . textContent ) . join ( "" ) ;
67
67
}
68
68
69
69
get hasDescription ( ) {
Original file line number Diff line number Diff line change 17
17
icon =" {{ this.treeItem.icon }} "
18
18
additional-text =" {{ this.treeItem.additionalText }} "
19
19
additional-text-state =" {{ this.treeItem.additionalTextState }} "
20
+ title =" {{ this.treeItem.title }} "
20
21
?_toggle-button-end =" {{ ../_toggleButtonEnd }} "
21
22
?_minimal =" {{ ../_minimal }} "
22
23
.treeItem =" {{ this.treeItem }} "
Original file line number Diff line number Diff line change @@ -91,6 +91,17 @@ const metadata = {
91
91
type : ValueState ,
92
92
defaultValue : ValueState . None ,
93
93
} ,
94
+
95
+ /**
96
+ * Defines the tooltip of the component.
97
+ * @type {string }
98
+ * @defaultvalue ""
99
+ * @private
100
+ * @since 1.0.0-rc.15
101
+ */
102
+ title : {
103
+ type : String ,
104
+ } ,
94
105
} ,
95
106
managedSlots : true ,
96
107
slots : /** @lends sap.ui.webcomponents.main.TreeItem.prototype */ {
You can’t perform that action at this time.
0 commit comments