ratiw / vuetable-2

data table simplify! -- datatable component for Vue 2.x. See documentation at
https://vuetable.com
MIT License
2.16k stars 399 forks source link

Css classes for 2-3 css-frameworks out of box . Feature request #173

Open itelmenko opened 7 years ago

itelmenko commented 7 years ago

Hello!

What do you think If vuetable-2 will have css classes maps out of box? Now If I am on Bootstrap I need search by google something like this:

export default {
  tableClass: 'table table-striped table-bordered',
  loadingClass: 'loading',
  ascendingIcon: 'glyphicon glyphicon-chevron-up',
  descendingIcon: 'glyphicon glyphicon-chevron-down',
  handleIcon: 'glyphicon glyphicon-menu-hamburger',
  pagination: {
    infoClass: 'pull-left',
    wrapperClass: 'vuetable-pagination pull-right',
    activeClass: 'btn-primary',
    disabledClass: 'disabled',
    pageClass: 'btn btn-border',
    linkClass: 'btn btn-border',
    icons: {
      first: '',
      prev: '',
      next: '',
      last: '',
    },
  },
}

But it will be good to have css classes map for Bootstrap, Semantic UI and something else out of box. I can do pull request. But I don't want to do it if this code was declined.

ratiw commented 7 years ago

@itelmenko Please wait a bit, I'm currently working on new tutorial lessons for this problem which contains other related stuff. There is also a small modification in the code base regarding this.

IMO, I would like this to be a separate add-on and it should contain not only the CSS for Vuetable, but also the pagination component as well.

CharlesOkwuagwu commented 6 years ago

hello, please any update on this?