added appendPostRenderCode

This commit is contained in:
Peter Schojer
2008-09-09 09:06:01 +00:00
parent 63caffdb6e
commit 867b643fad
2 changed files with 14 additions and 3 deletions

View File

@@ -62,7 +62,7 @@ void LabelRenderer::renderHead(const Renderable* pRenderable, const RenderContex
const Label* pLabel = static_cast<const Poco::WebWidgets::Label*>(pRenderable);
//ostr << "{xtype:'label', text:'" << Utility::safe(pLabel->getText()) << "'}";
ostr << "new Ext.form.Label({text:'" << Utility::safe(pLabel->getText()) << "',cls:'lbl'";
ostr << "new Ext.form.Label({text:'" << Utility::safe(pLabel->getText()) << "',cls:'lbl'," << "id:'" << pLabel->id() << "'";
if (pLabel->getWidth() > 0)
ostr << ",width:" << pLabel->getWidth();
ostr << "})";