Back to forum

How to combine toolbar 2 section in one scetion

Answered

Hello WDR team,
I have a problem with toolbar how to i combine toolbar 2 section as you seen this image in one and first pivot have 4 menus but there is enough space with more 3 menu but its cannot include last menu icon what should i do?
 

1 answer

madhu May 29, 2020

configure custom toolbar function and call it :
var pivot = new WebDataRocks({
container: “#wdr-component”,
beforetoolbarcreated: customizeToolbar,
toolbar: true,
report: {
dataSource: {
filename: “https://cdn.webdatarocks.com/data/data.csv”
}
}
});
function customizeToolbar(toolbar) {
var tabs = toolbar.getTabs();    // get all tabs        
toolbar.getTabs = function() {   
//in tabs default tabs it will show which tab u want to align u can configure 
tabs[3].rightGroup= true; //it will gives the tab to right side of report    
return tabs;                  
}                                                                 
}

Move up