Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update creating-a-simple-square-control-9a6100b.md #51

Merged
merged 3 commits into from
Jun 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down