File tree Expand file tree Collapse file tree 5 files changed +27
-3
lines changed Expand file tree Collapse file tree 5 files changed +27
-3
lines changed Original file line number Diff line number Diff line change 1414 aria-selected =" {{ ariaSelected }} "
1515 role =" {{ _accInfo.role }} "
1616 aria-expanded =" {{ _accInfo.ariaExpanded }} "
17+ title =" {{ title }} "
1718 aria-level =" {{ _accInfo.ariaLevel }} "
1819 aria-posinset =" {{ _accInfo.posinset }} "
1920 aria-setsize =" {{ _accInfo.setsize }} "
Original file line number Diff line number Diff line change @@ -46,6 +46,17 @@ const metadata = {
4646 type : Boolean ,
4747 } ,
4848
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+
4960 /**
5061 * Indicates if the list item is actionable, e.g has hover and pressed effects.
5162 *
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ const metadata = {
2121 type : HTMLElement ,
2222 } ,
2323 "default" : {
24- propertyName : "title " ,
24+ propertyName : "titleText " ,
2525 } ,
2626 } ,
2727} ;
@@ -48,11 +48,11 @@ class SuggestionListItem extends StandardListItem {
4848
4949 onBeforeRendering ( ...params ) {
5050 super . onBeforeRendering ( ...params ) ;
51- this . hasTitle = ! ! this . title . length ;
51+ this . hasTitle = ! ! this . titleText . length ;
5252 }
5353
5454 get effectiveTitle ( ) {
55- return this . title . map ( el => el . textContent ) . join ( "" ) ;
55+ return this . titleText . filter ( node => node . nodeType !== Node . COMMENT_NODE ) . map ( el => el . textContent ) . join ( "" ) ;
5656 }
5757
5858 get hasDescription ( ) {
Original file line number Diff line number Diff line change 1717 icon =" {{ this.treeItem.icon }} "
1818 info =" {{ this.treeItem.info }} "
1919 info-state =" {{ this.treeItem.infoState }} "
20+ title =" {{ this.treeItem.title }} "
2021 ?_toggle-button-end =" {{ ../_toggleButtonEnd }} "
2122 ?_minimal =" {{ ../_minimal }} "
2223 .treeItem =" {{ this.treeItem }} "
Original file line number Diff line number Diff line change @@ -91,6 +91,17 @@ const metadata = {
9191 type : ValueState ,
9292 defaultValue : ValueState . None ,
9393 } ,
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+ } ,
94105 } ,
95106 managedSlots : true ,
96107 slots : /** @lends sap.ui.webcomponents.main.TreeItem.prototype */ {
You can’t perform that action at this time.
0 commit comments