Skip to content

Commit

Permalink
Merge pull request #6 from wridgeu/RenderManager-apiVersion-2
Browse files Browse the repository at this point in the history
Closes Suggestion: RenderManager - apiVersion 2 #3
  • Loading branch information
geert-janklaps authored Feb 9, 2021
2 parents dea32e1 + 16d7daf commit e7f8091
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ sap.ui.define([],
* Example renderer.
* @namespace
*/
var ExampleRenderer = {};
var ExampleRenderer = {
apiVersion: 2
};

/**
* Renders the HTML for the given control, using the provided
Expand All @@ -25,15 +27,13 @@ sap.ui.define([],
*/
ExampleRenderer.render = function (oRm, oControl) {

oRm.write("<div");
oRm.writeControlData(oControl);
oRm.addClass("sapRULTExample");
oRm.writeClasses();
oRm.write(">");
oRm.openStart("div", oControl);
oRm.class("sapRULTExample");
oRm.openEnd( );
oRm.write(sap.ui.getCore().getLibraryResourceBundle("<%= librarynamespace %>").getText("ANY_TEXT"));

oRm.writeEscaped(oControl.getText());
oRm.write("</div>");
oRm.close("div");

};

Expand Down

0 comments on commit e7f8091

Please sign in to comment.