Created
May 27, 2010 20:44
-
-
Save zaucker/416312 to your computer and use it in GitHub Desktop.
[qx] PrioTable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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