It's ok If I extend this way the qx.ui.table.Table Class? or I might get some
issues?
qx.Class.define('test1.TTable', {
extend: qx.ui.table.Table,
construct: function(model){
// listen for when a model is added
var that = this;
this.addListener('changeTableModel', function(e){
var model = that.getSelectionModel();
if(model){
model.addListener('changeSelection',
function(e){
var selectionModel = e.getTarget();
var selectedRows = [];
var tableModel = that.getTableModel();
selectionModel.iterateSelection(function(index) {
selectedRows.push(tableModel.getRowDataAsMap(index));
});
var data = selectedRows;
// dispatch the event
that.setCurrentSelection(data);
})
}
});
this.base(arguments, model);
},
properties: {
currentSelection: {
nullable: true,
event: "changeCurrentSelection"
}
}
});
thanks (:
--
View this message in context:
http://qooxdoo.678.n2.nabble.com/It-s-ok-If-I-extend-this-way-the-qx-ui-table-Table-Class-or-I-might-get-some-issues-tp7365399p7365399.html
Sent from the qooxdoo mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel