From: Alan Knowles Date: Tue, 25 May 2010 09:07:02 +0000 (+0800) Subject: Sample/Window.js X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=67cb1d2403993bf57f473083fbad1301758ca9d1;p=app.Builder.js Sample/Window.js --- diff --git a/Sample/Window.js b/Sample/Window.js index 55dadfa53..0f633b0b2 100644 --- a/Sample/Window.js +++ b/Sample/Window.js @@ -2471,6 +2471,20 @@ Window=new XObject({ xtype: Gtk.VBox, pack : "add", id : "RightBrowser", + renderJS : function(data) { + var v = this.get('view'); + v.renderedData = data; + var str = JSON.stringify(data) ; + + if (!v.ready) { + console.log('not loaded yet'); + } + Seed.print("RENDER:" + str); + // imports.File.File.write('/tmp/builder.debug.js', "Builder.render(" + JSON.stringify(data) + ");"); + v.el.execute_script("Builder.render(" + JSON.stringify(data) + ");"); + + + }, items : [ { xtype: Gtk.HBox,