Hello,
I’m trying to create base classes of views using this example (Page not found - Webix Jet). I’m using the example:
// views/basedatatable.js
import {JetView} from "webix-jet";
export default class BaseDatatable extends JetView {
constructor(app, name, config){
super(app, name);
this.config = config;
}
config(){
return { view:"datatable", columns: this.config.columns };
}
}
// views/products.js
import {BaseDatatable} from "webix-jet";
import products from "models/products"; //data collection
export default class ProductsView extends BaseDatatable {
constructor(app, name){
super(app, name, {
columns:[
{id:"id",header:""},
{id:"product",header:"Product"},
{id:"stock",header:"In stock"}
]
});
}
init(view){
view.parse(products);
}
}
But am getting the error: “Super expression must be null or function, not undefined”. Can anyone provide a working example of this?
Thanks