I was wondering if there's any way to change a css property of a ControlWrapper through Javascript?
I know how to do it with css but I want to know if there is a way to change the control width depending on device/browser width.
I mean something like this:
document.getElementsByClassName('google-visualization-controls-rangefilter .google-visualization-controls-slider-horizontal').style.width = window.innerWidth;
I have tried to change it through css but when I set the control width to 100%... it doesn't work...
.google-visualization-controls-rangefilter .google-visualization-controls-slider-horizontal {
width: 100%;
}
I think this happens because 100% of width is actually 200px for control...
And if there is a way to do this... where can I write it? After or before drawing the Dashboard?
I would really be grateful if you could tell me how to do it.