Skip to content

Commit 2942db7

Browse files
authored
Update ControlRenderer.js
- Use the newer apiVersion flag of the Renderer - ID attribute for the table rows added
1 parent ecc4098 commit 2942db7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

frameworks/non-keyed/openui5/webapp/ControlRenderer.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
sap.ui.define([], function () {
66

77
var ControlRenderer = {
8-
apiVersion: 2
8+
apiVersion: 4
99
};
1010

1111
ControlRenderer.render = function (oRM, oControl) {
@@ -101,7 +101,7 @@ sap.ui.define([], function () {
101101
//rows
102102
oControl.getRows().forEach(row => {
103103
// <tr id={{this.id}} class={{this._class}}></tr>
104-
oRM.openStart("tr");
104+
oRM.openStart("tr", row.id);
105105
if (row.id === selected) {
106106
oRM.class("danger");
107107
}
@@ -161,4 +161,4 @@ sap.ui.define([], function () {
161161

162162
return ControlRenderer;
163163

164-
}, /* bExport= */ true);
164+
}, /* bExport= */ true);

0 commit comments

Comments
 (0)