I have requirement such that on click  of button excel  to be download with  table fields.
But i  dont want div data to get displayed below button.
 
<div id="pivot-container"></div>
 something like this  but not working
var x = document.getElementById("pivot-container");
x.style.display = "none";
 
var pivot = new Flexmonster({
container: "pivot-container",
componentFolder: "https://cdn.flexmonster.com/",
width: "100%",
height: 430,
report: {
dataSource: {
data: getData()
},
options: {
configuratorActive: false
}
}
});
 
when  i remove div element, it says  unable to create component. dom element with id pivot-container not found. I  dont want div to be displayed.  only button
Hello,
Thank you for reaching out to us.
 
Please note that Flexmonster itself is a tool for data visualization and analysis. It cannot be used as hidden data provided or exporting tool. Therefore, it must be visible on the page to function properly.
 
Feel free to contact us if other questions arise.
 
Kind regards,
Illia