Hello,
Looking to convert a number of our html tables to webix DT. I want to use the gravity property to set relative width with fillspace property to take up the full width of the parent div. The table takes full width but all columns are same width. I’m a newbie, so I may be missing something obvious, any guidance is appreciated.
// reusable funtion
function om_webix_htmltable_cfg(parentDiv,autoht,autowd,tblDiv,arrRelWidth){
var wx_tmp_tbl = webix.ui({
container:parentDiv,
view:"datatable",
autoheight:autoht,
//,autowidth:autowd
});
wx_tmp_tbl.parse(tblDiv, "htmltable");
for(i=0; i< arrRelWidth.length; i++){
wx_tmp_tbl.config.columns[i].gravity=arrRelWidth[i];
wx_tmp_tbl.config.columns[i].fillspace=true;
}
wx_tmp_tbl.refreshColumns();
return wx_tmp_tbl;
}
//testing
om_webix_htmltable_cfg("divEmailLogForPract",true,false,"practEmailLogTable",[1,1,1,2,1]);