<v-server-table :columns="columns" :options="options" :theme="theme" id="dataTable"></v-server-table>
import moment from "moment";
import daterangepicker from "daterangepicker";
window.moment = moment;
window.daterangepicker = daterangepicker;
Vue.use(ServerTable);
export default {
name: "Actions",
props: [
'perPage'
],
components: {
ServerTable,
Event,
Loading
},
data() {
return {
isLoading: false,
columns: ['applicationUuid', 'name', 'command', 'status', 'user', 'initAt', 'endAt'],
options: {
sortable: ['applicationUuid', 'name', 'command', 'status', 'user', 'initAt', 'endAt'],
sortIcon: {base: 'fa', up: 'fa-sort-asc', down: 'fa-sort-desc', is: 'fa-sort'},
filterByColumn: true,
filterable: ['name', 'command', 'status', 'user', 'initAt', 'endAt'],
dateColumns: ['initAt'],
headings: {
name: this.$t('message.name'),
command: this.$t('message.command'),
status: this.$t('message.status'),
userDisplayName: this.$t('message.name'),
initAt: this.$t('message.started'),
endAt: this.$t('message.ended'),
},
perPageValues: [this.perPage, 10, 25, 50, 100],
perPage: this.perPage,
pagination: {
chunk: 5,
edge: true,
nav: 'scroll'
},
requestFunction: (data) => {
//Call via axios
}
},
useVuex: false,
theme: 'bootstrap4',
template: 'default'
}
},
mounted() {
}
}
App.vue
MyComponent.vue
No filter is showing for initAt : just a placeholder label is showing.