Reputation: 33
For Example:
var tablePanel = new Ext.Panel({
border: false,
autoScroll: true,
layout: 'table',
layoutConfig: { columns: maxColumns },
items: items
});
Can i add rows or cells to that table? And how can i do that? with method .add or? Thanks.
Upvotes: 2
Views: 1339
Reputation: 36987
I think so.
tablePanel.add(whatever);
tablePanel.add(whatever2);
tablePanel.add(whatever3);
tablePanel.add(whatever4);
...
tablePanel.doLayout();
In the table layout, there are no explicite row objects; just every group of n columns are one row (ignoring rowspan and colspan), n being the value of layoutConfig: { columns: n }
Upvotes: 2