Getting Started
Last updated
Was this helpful?
Last updated
Was this helpful?
This package is abandoned. Premium version is now available publicly for both vue2 and vue 3
OR
OR (see instruction for vue 3)
Require the script:
Or/And:
The above code is only for the purpose of documentation. The actual code would look something like this:
Vue.use(ServerTable, {}, false, 'bootstrap4')
options
see
useVuex
is a boolean indicating whether to use vuex
for state management, or manage state on the component itself. If you set it to true
you must add a name
prop to your table, which will be used to register a module on your store. Use vue-devtools
to look under the hood and see the current state.
theme
Use this option to select a CSS framework. Options:
bootstrap3
bootstrap4
bulma
tailwind (on premium versions)
You can also pass you own theme. Use a file from the themes
folder as boilerplate:
If you are not using NPM you can also import the minified version found in dist/vue-tables-2.min.js
. Copy the file into your project and import it:
This will expose a global VueTables
object containing ClientTable
, ServerTable
and Event
as properties.
E.g:
swappables
See
Or, if you prefer, use the .