Vue-good-table: Option to completely leave out styles?

Created on 22 Nov 2017  路  6Comments  路  Source: xaksis/vue-good-table

Great component, thanks for your hard work! 馃憤

I would like to completely omit the <style> tag and its contents. Is there a way to do that right now? If not, is it possible to implement?

enhancement Close with 2.0 release

Most helpful comment

@bjh81782 @blak3r @davidohlin this now exists in the next major version (currently in beta) you can read the documentation here:
https://github.com/xaksis/vue-good-table/tree/new-build

upgrade guide:
https://github.com/xaksis/vue-good-table/wiki/Guide-to-upgrade-from-1.x-to-v2.0

All 6 comments

@davidohlin vue-good-table give you the prop styleClass which overwrite the styles for the table. Using <vue-good-table styleClass=""> the table will be without styles. Only, the pagination will have them.

@xaksis one possibility would be moving styleClass to the main div instead put it on the table? It will be a breaking change but it could be good.

CSS should not be bundled into JS anyways (extra code and make code parsing slower), it's better that you can extract CSS from dist/vue-good-table.js

+1 would be nice to completely omit. I used the styleClass attributes I set table table-sm table-condensed and those are already defined by my CSS and your built in ones are overriding some of it's css.

+1 for me on this. I would rather the bootstrap styles apply directly. The built in ones seem to override. Specifically .table-sm

@bjh81782 @blak3r @davidohlin this now exists in the next major version (currently in beta) you can read the documentation here:
https://github.com/xaksis/vue-good-table/tree/new-build

upgrade guide:
https://github.com/xaksis/vue-good-table/wiki/Guide-to-upgrade-from-1.x-to-v2.0

closing.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hoanghiep1x0 picture hoanghiep1x0  路  5Comments

dariagrudzien picture dariagrudzien  路  3Comments

mustfullDev picture mustfullDev  路  3Comments

luizzz picture luizzz  路  6Comments

davidjr82 picture davidjr82  路  6Comments