Totty.js
Totty.js

Reputation: 15861

Extending the Table Class in Qooxdoo doesn't works?

I have a custom class that looks like this:

qx.Class.define('test.Table2', {
extend: qx.ui.table.Table,

construct: function(model){
    this.base(arguments);
    }
});

What happens?

If I use the qx.ui.table.Table with a model it shows data. If I change to test.Table2 then it shows an empty table with empty col names too. only a little bar.

How do I extend it properly?

Upvotes: 0

Views: 207

Answers (1)

SergeyT
SergeyT

Reputation: 850

You should pass all parameters to base class constructor:

this.base(arguments, model);

Upvotes: 1

Related Questions