View Full Version : Templates and ExtJS controls?

3 Dec 2010, 9:31 AM
Is it possible to specify/render ExtJS control within a template? Or is it only text based?

4 Dec 2010, 1:27 AM
It's text based, but there are solutions to that.

What kind of template is this? Basic data (try HtmlLayout user extension) or DataView/ListView (try ComponentDataView/ListView user extension).

4 Dec 2010, 8:06 AM
I have been using the HtmlLayout and it works pretty good. Only drawback is that on complex layouts, it gets a bit daunting to manage because the controls are instantiated separately from the layout, and you must figure out which target to render to. Its fine if it remains static, but when you need to add/remove/move a cell, for example, you must go through and re target everything. It would be much cleaner to render the components inline with the table. So I tired the TableLayout, but I'm having an issue with the styling.

Seems like there is no simple solution to creating a html/table based layout with inline component instantiation...

4 Dec 2010, 8:11 AM
Must it be <table> based or are you just looking for a grid layout?

In that case I would recommend using a nested vbox/hbox layout instead.