How to manipulate a dom element added to this.content inside a control

edited October 2013 in Newbie Questions
Hi, I'm building a control in which I need to access the dom but the included example that changes the background cell to red does not work.

How would this be done?

My code is as follows:

                   name: "PanelToggleButton",
                   kind: enyo.Control,
                   allowHtml: true,
                   content: "",

                   published: {
                       element: "",

                   create: function () {
                       var tabletxt = "";
                       tabletxt += "";
                       tabletxt += "$%";
                       tabletxt += "";

                       // THE FOLLOWING DOES NOT WORK:
                       document.getElementById("leftbutton").style.backgroundColor = "#ff0000";

                   buildBody: function () {



Sign In or Register to comment.