dotnetCarpenter
2 May 2007, 3:30 PM
Hi all!
I'm having some small problems that I hope someone with more Ext knowledge that me can help with.
If I use setText() on a button the padding goes away. I have added the buttons to a Ext.LayoutDialog with addButton.
compile() on an Ext.Template has the wrong scope and throws an error. Example:
var formHTML = new Ext.Template(
"<div style='{style}'>",
"<div class='x-box-tl'>",
"<div class='x-box-tr'>",
"<div class='x-box-tc'></div>",
"</div>",
"</div>",
"<div class='x-box-ml'>",
"<div class='x-box-mr'>",
"<div class='x-box-mc'>",
"<h3 style='margin-bottom:5px;'>{headline}</h3>",
"<div id='{formId}'></div>",
"</div>",
"</div>",
"</div>",
"<div class='x-box-bl'>",
"<div class='x-box-br'>",
"<div class='x-box-bc'></div>",
"</div>",
"</div>",
"</div>");
formHTML.disableFormats = true;
formHTML.compile();
Ext.form.Form won't render/can't find dynamically added HTML element. If I use the above template and give it an id, using that id (as a string) will throw an error when I use the render function.
Any help is appreciated!
Cheers, Jon.
I'm having some small problems that I hope someone with more Ext knowledge that me can help with.
If I use setText() on a button the padding goes away. I have added the buttons to a Ext.LayoutDialog with addButton.
compile() on an Ext.Template has the wrong scope and throws an error. Example:
var formHTML = new Ext.Template(
"<div style='{style}'>",
"<div class='x-box-tl'>",
"<div class='x-box-tr'>",
"<div class='x-box-tc'></div>",
"</div>",
"</div>",
"<div class='x-box-ml'>",
"<div class='x-box-mr'>",
"<div class='x-box-mc'>",
"<h3 style='margin-bottom:5px;'>{headline}</h3>",
"<div id='{formId}'></div>",
"</div>",
"</div>",
"</div>",
"<div class='x-box-bl'>",
"<div class='x-box-br'>",
"<div class='x-box-bc'></div>",
"</div>",
"</div>",
"</div>");
formHTML.disableFormats = true;
formHTML.compile();
Ext.form.Form won't render/can't find dynamically added HTML element. If I use the above template and give it an id, using that id (as a string) will throw an error when I use the render function.
Any help is appreciated!
Cheers, Jon.