我嘗試設置ON數據表編輯,但我不知道爲什麼它不起作用。檢查使用webix進行數據表編輯
var datatable = webix.ui({
id: "mytable",
container: "myDATA",
view:"datatable",
autoheight:true,
select: 'row',
multiselect: true,
autoConfig:true,
editable: true,
editaction: 'dblclick',
columns:[
{ id:"rank", header: translate["en"].rank, width:50},
{ id:"title", header: translate["en"].title, width:200},
{ id:"year", header: translate["en"].year, width:80},
{ id:"votes", header: translate["en"].votes, width:100}
],
on: {
onBeforeLoad: function() {
this.showOverlay('Loading...');
},
onAfterLoad: function() {
if(!this.count()) {
this.showOverlay('No data found...');
} else {
this.hideOverlay();
}
},
onItemClick: function(id,element,node) {
var row = this.getItem(id);
console.log(row);
}
}
});
我的jsfiddle:http://jsfiddle.net/gdjaero9/40/任何解決方案?
謝謝你的回答。
該工程!謝謝 ! :) – Unchained