From e01915a8a345c2ffa59f3bd117e5a7298d3af3ac Mon Sep 17 00:00:00 2001 From: dexter0175 Date: Sun, 9 Apr 2023 14:05:25 +0200 Subject: [PATCH] Update creating-a-simple-square-control-9a6100b.md --- .../creating-a-simple-square-control-9a6100b.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/09_Developing_Controls/creating-a-simple-square-control-9a6100b.md b/docs/09_Developing_Controls/creating-a-simple-square-control-9a6100b.md index 64e3e7e5..a01ad6d2 100644 --- a/docs/09_Developing_Controls/creating-a-simple-square-control-9a6100b.md +++ b/docs/09_Developing_Controls/creating-a-simple-square-control-9a6100b.md @@ -22,8 +22,8 @@ var Square = Control.extend("my.Square", { // call the new Control type "my.Squa // the part creating the HTML: - renderer : { - // instead of "this" in the render function + renderer : function(oRm, oControl) { // static function, so use the given "oControl" instance + // instead of "this" in the render function oRm.openStart("div", oControl); // creates the root element incl. the Control ID and enables event handling - important! oRm.style("width", oControl.getSize()); // write the Control property size; the Control has validated it to be a CSS size oRm.style("height", oControl.getSize());