dash-pivottable icon indicating copy to clipboard operation
dash-pivottable copied to clipboard

Styling Dash Pivottable

Open benjamincottam opened this issue 4 years ago • 1 comments
trafficstars

I am implementing the Dash Pivottable as part of a larger dashboard but would like to see the ability to define or change the default colors and overall styling. Additionally, is the text that appears at the bottom of the of the pivot table essential? I would like this to be hidden if possible. I apologize if this is the wrong forum for this type of request.

benjamincottam avatar Jan 11 '21 21:01 benjamincottam

For the CSS, you can modify the pivottable.css file from react-pivottable, and when you are happy you can place it inside the assets folder of your app.

Alternatively you can also fork this repo and create your own version of dash-pivottable by changing the path to the css file (see CONTRIBUTING.md FAQ) but that would be a permanent change.

The text at the bottom was added for learning purposes in the usage.py. You can remove the callback and the html.Div that stores it the text.

xhluca avatar Jan 28 '21 17:01 xhluca