X-Git-Url: http://git.roojs.org/?p=roojs1;a=blobdiff_plain;f=docs%2Fsrc%2FRoo_Template.js.html;h=b1347f5bb19564a9da2ecd46dc526ff860407227;hp=ce8916ddab134754055b9af1574905721fdf4ce9;hb=84b1c42aed0e844a4257707890999cda8d3008c2;hpb=424a05a86ea483764495a009bd1f555cf4c9e9d9 diff --git a/docs/src/Roo_Template.js.html b/docs/src/Roo_Template.js.html index ce8916ddab..b1347f5bb1 100644 --- a/docs/src/Roo_Template.js.html +++ b/docs/src/Roo_Template.js.html @@ -68,11 +68,18 @@ t.append('some-element', {id: 'myid', cls: 'myclass', name: 'foo', value: 'bar'} * @cfg {String} html The HTML fragment or an array of fragments to join("") or multiple arguments to join("") */ html : '', + + + compiled : false, + loaded : false, /** * Returns an HTML fragment of this template with the specified values applied. * @param {Object} values The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'}) * @return {String} The HTML fragment */ + + + applyTemplate : function(values){ //Roo.log(["applyTemplate", values]); try { @@ -134,7 +141,9 @@ t.append('some-element', {id: 'myid', cls: 'myclass', name: 'foo', value: 'bar'} success : function (response) { _t.loading = false; _t.url = false; - _t.set(response.responseText,true) + + _t.set(response.responseText,true); + _t.loaded = true; if (_t.onLoad) { _t.onLoad(); } @@ -154,7 +163,7 @@ t.append('some-element', {id: 'myid', cls: 'myclass', name: 'foo', value: 'bar'} */ set : function(html, compile){ this.html = html; - this.compiled = null; + this.compiled = false; if(compile){ this.compile(); }