Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feedback: using with laravel-mix #102

Open
eduardoarandah opened this issue Aug 22, 2018 · 0 comments
Open

Feedback: using with laravel-mix #102

eduardoarandah opened this issue Aug 22, 2018 · 0 comments

Comments

@eduardoarandah
Copy link

eduardoarandah commented Aug 22, 2018

Some feedback:

Importing dependencies

I got stuck at importing from laravel-mix, this imports didn't work

import Vuetable from 'vuetable-2/src/components/Vuetable'
import VuetablePagination from 'vuetable-2/src/components/VuetablePagination'

this worked:

<script>
import Vuetable from 'vuetable-2'
import {
  VuetablePagination,
  VuetablePaginationInfo
} from "vuetable-2"

export default {
  components: {
    Vuetable,
    VuetablePagination,
    VuetablePaginationInfo
  },

Dependencies

If you are using laravel defaults, you might not need to import jquery or semantic ui

Bootstrap

this css worked for me:

Properties

<vuetable :css="css.table">
</vuetable>

<vuetable-pagination :css="css.pagination">
</vuetable-pagination>

in data:

css: {
  table: {
    tableClass: 'table bg-white table-striped shadow-custom',
    loadingClass: 'loading',
    ascendingIcon: 'fa fa-chevron-up',
    descendingIcon: 'fa fa-chevron-down',
    handleIcon: 'fa fa-bars',
  },
  pagination: {
    infoClass: 'pull-left',
    wrapperClass: ' pull-right pagination',
    activeClass: 'active',
    disabledClass: 'disabled',
    pageClass: 'page-link',
    linkClass: 'page-link',
    icons: {
      first: '',
      prev: '',
      next: '',
      last: '',
    },
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant