want to hide div pivot-container

Answered
Aditya asked on October 1, 2021

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

1 answer

Public
Illia Yatsyshyn Illia Yatsyshyn Flexmonster October 1, 2021

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

Please login or Register to Submit Answer