Skip to content

Instantly share code, notes, and snippets.

@zaucker
Created May 27, 2010 20:44
Show Gist options
  • Save zaucker/416312 to your computer and use it in GitHub Desktop.
Save zaucker/416312 to your computer and use it in GitHub Desktop.
[qx] PrioTable
qx.Class.define("DCTM.PrioTable", {
extend : qx.ui.table.Table,
construct : function(term) {
this.base(arguments);
// table model
var tableModel = new qx.ui.table.model.Simple();
tableModel.setColumns([ term, "Priorität"]);
this.setTableModel(tableModel);
this.set({
// decorator: null,
columnVisibilityButtonVisible: false,
statusBarVisible: false
});
tableModel.setColumnEditable(1, true);
}});
var flowlayout = new qx.ui.layout.Flow();
flowlayout.set({ alignX: "center", // Align children to the X axis of the container (left|center|right)
spacingX: 10
});
var container = new qx.ui.container.Composite(flowlayout);
this.getRoot().add(container, {edge: 0});
container.add(new DCTM.PrioTable("Geschäftsvorfall"));
container.add(new DCTM.PrioTable("Art"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment