Hi devs,
I'm using a table and I tried to use some cellrenderers provided by
qooxdoo, but I don't see any styles applied. What I'm trying is to have
'bold' style applied to all cells in a specific column.
String cell-renderer has four options according to the documentation:
- cellrenderer.String(String align, String color, String style, String
weight)
-
http://demo.qooxdoo.org/current/apiviewer/#qx.ui.table.cellrenderer.String
I tried to set also custom color/alignment, but it doesn't have any effect.
Playground link:
https://tinyurl.com/kb6az4b
Code copy:
var doc = this.getRoot();
var model = new qx.ui.table.model.Simple();
model.setColumns(
["Id", "Name", "Description"],
["id", "name", "description"]
);
model.setDataAsMapArray([
{ id: "0", name: "Name 0", description: "Description 0" },
{ id: "1", name: "Name 1", description: "Description 1" },
{ id: "2", name: "Name 2", description: "Description 2" },
{ id: "3", name: "Name 3", description: "Description 3" },
{ id: "4", name: "Name 4", description: "Description 4" },
{ id: "5", name: "Name 5", description: "Description 5" },
{ id: "6", name: "Name 6", description: "Description 6" },
{ id: "7", name: "Name 7", description: "Description 7" },
{ id: "8", name: "Name 8", description: "Description 8" },
{ id: "9", name: "Name 9", description: "Description 9" },
{ id: "10", name: "Name 10", description: "Description 10" },
{ id: "11", name: "Name 11", description: "Description 11" },
{ id: "12", name: "Name 12", description: "Description 12" },
{ id: "13", name: "Name 13", description: "Description 13" },
{ id: "14", name: "Name 14", description: "Description 14" },
{ id: "15", name: "Name 15", description: "Description 15" },
{ id: "16", name: "Name 16", description: "Description 16" },
{ id: "17", name: "Name 17", description: "Description 17" },
{ id: "18", name: "Name 18", description: "Description 18" },
{ id: "19", name: "Name 19", description: "Description 19" }
], true, true);
var table = new qx.ui.table.Table(model);
var cm = table.getTableColumnModel();
cm.setDataCellRenderer(1, new qx.ui.table.cellrenderer.String("right", "",
"", "bold"));
doc.add(table, { edge: 0 });
is it a bug or do I miss anything?
Best,
Petr
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel