-
Pagination and Pagination Info
Pagination and pagination info are still in the package but no longer part of
vuetable. That means you will have to explicitly include them in your template and wire them up tovuetableusing availble events.This is very easy though. Basically, you just need to listen to
vuetable:pagination-dataevent to get the pagination information, then callsetPaginationData()on bothPaginationandPaginationInfocomponents. Please see the provided example.The reason behind this is that uncoupling the pagination and pagination info components from
vuetablemakes it more flexible and light weight. If you do not need pagination component, you don't have to use it. Or if you want to use your own pagination component or put it somewhere else, you can easily do that. -
Vuetable Events
Due to the change in Vue 2.0 the deprecates
$broadcastand$dispatchthe events and encourages the use of centralized event hub, you can no longer send an event tovuetableto perform the task (e.g.vuetable:reload,vuetable:refresh) as before.In earlier version of
vuetable, it usually uses and provides those events for communications between its internal components (e.g. Vuetable, VuetablePagination, etc). In this case, moving all those events tovuexseems over-kill and inappropriate sincevuexis intended to be use as an centralized state management for an application.Although, those events were removed in this version, but almost all the functionality are still there in the methods inside
vuetable. You can easily call it by referencingvuetablecomponent in your code usingrefattribute.For the list of availble and removed events, please see the [What's Change] section.
-
__actionsfieldThe
__actionsspecial field was deprecated and can easily be replaced by the__componentspecial field, which is more useful and shouldn't have any limitation since you can now use the full power of Vue.js.Please see the provided example for the replacing action component.
-
append-paramsThe type of
append-paramshas been changed fromArraytoObjecttype. -
CSS styling
All the related CSS classes has been moved into
cssprop, which is anObjecttype. This should make the template shorter and cleaner to look.