Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Access var's value from canvas construtor?

    Hello,

    I have the following classes on my code:

    Code:
    isc.defineClass("InnovaCanvasItem","Canvas").addProperties({
    	  width: 600,
    	  height: 400,
    	  shouldSaveValue: true,
    	  getInnerHTML : function () {
    	  		return "<textarea STYLE='width:100%; height: "+ this.getHeight() +"px;' ID=" + this.getID() + "_ta></textarea><div id=" + this.getID() + "_div></div>";
    	  },
    	  loadEditor: function() {
                             // Access innovaEditor or innovaFolder??
              }
    });
    
    isc.defineClass("DynTextEdit", "CanvasItem").addProperties({
    	canvasConstructor: "InnovaCanvasItem",
    	shouldSaveValue: true,
    	innovaEditor: null,
            innovaFolder: null,
    	innovaAddress: null
    });
    How can i access the value of innovaEditor or innovaFolder inside loadEditor function?

    I tried this.innovaEditor but it returns undefined ( guess it is not the right way to do it ).

    Thanks!
Working...
X