I all
i’m quite new about webix… i’m try to play with Webix Jet, but i have some difficult;
my purpose is to display a datatable and then clicking in a “pencil” image (in the row) display (fow now) a form …
keep in mind i’m try this with webis Jet
this my data01.js (that display datatable, and it works like i want)
import {JetView} from “webix-jet”;
import {data01} from “models/records01”;
import details from “views/details.js”;
export default class DataView01 extends JetView{
config(){
return { view:“datatable”,
select:true,
columns :[
{ id:“id”},
{id:“title”},
{id:“year”},
{id:“votes”},
{id:“rating”},
{id:“rank”},
{view: “icon”,
template:"",
width: 40}
] ,
onClick:{
“fa-pencil”:function(e,id){
this.app.show("/details");
},
}
};
}
init(view){
view.parse(data01);
this.details = this.ui(details);
}
}
This is details.js (that should be displayed when i click on “pencil”, but instead i receive this error: “Cannot read property ‘show’ of undefined”
// views/details.js
import {JetView} from “webix-jet”;
export default class details extends JetView{
config() {
return {
view :"form",
id:"myform",
/* form fields */
rows:[
{ view:"text", label:"Name:",
name:"firstname", value:""},
{ view:"text", label: "E-Mail:",
name:"email", value:""}
],
};
}
init() {
}
};
Can some help me to understand where am i wrong ?
thanks in advance