Hi,
it is possible to add an table in a tabview, after the tabview ist created?
Regards,
Georg
members :
{
main: function()
{
this.base(arguments);
var scroller = new qx.ui.container.Scroll();
var container = new qx.ui.container.Composite(new
qx.ui.layout.VBox(10));
container.setPadding(20);
container.setAllowStretchX(false);
scroller.add(container);
this.getRoot().add(scroller, {edge : 0});
container.add(this.getTabView3());
//Table
var column = []; column.push("Name"); var rowData = [];
rowData.push(["Inhalt"]);
var tableModel = new qx.ui.table.model.Simple();
tableModel.setColumns(column);
tableModel.setData(rowData);
table = new qx.ui.table.Table(tableModel,"Tabelle");
//Add table in the tabview widget??????
},
getTabView3 : function()
{
var tabView = new qx.ui.tabview.TabView();
tabView.setWidth(500);
tabView.setHeight(300);
for (var i=1; i<=3; i++)
{
var page = new qx.ui.tabview.Page("Page #" + i,
"icon/32/apps/utilities-terminal.png");
page.setLayout(new qx.ui.layout.VBox(4));
tabView.add(page);
page.add(new qx.ui.basic.Label("Page #" + i));
}
var firstPage = tabView.getChildren()[0];
return tabView;
}
--
View this message in context:
http://qooxdoo.678.n2.nabble.com/add-table-in-tabview-tp5669503p5669503.html
Sent from the qooxdoo mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel