Anand Tangri
Anand Tangri

Reputation: 71

ag-grid theme malfunction using vuetify in vueJS 2

I am using ag-grid in my project which uses vuetify.js and is based on vueJS. I am facing problems with the ag-grid themes. Whenever I use the ag-material theme the outcome is different from the one shown ag-grid website. I just get a very basic theme when I add material theme. Can anyone help?

Upvotes: 1

Views: 507

Answers (1)

LShapz
LShapz

Reputation: 1756

you need to make sure you import both

import "/node_modules/ag-grid/dist/styles/ag-grid.css";
import "/node_modules/ag-grid/dist/styles/theme-material.css";

and then, make sure you include both classes <ag-grid-vue class="ag-material ag-theme-material">

Upvotes: 1

Related Questions