fires before an inner view of spreadsheet is initialized
id | string|number | the inner view ID |
config | object | the object with a view configuration |
webix.ui({
view:"spreadsheet",
data:spreadsheet_data,
on:{
onViewInit:function(view, config){
if (view == "toolbar" && window.innerWidth < 1400){
config.elements = [{
view:"scrollview",
scroll:"x",
body:{ cols:config.elements }
}];
}
}
}
});
The event can be used to make changes in the UI of inner components, e.g. the toolbar, the context menu or the bottom bar.