Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
mounted() {
this.loadPage(0);
var me = this;
PaginationEvent.$on('vue-pagination::models', function (page) {
// display the relevant records using the page param
me.loadPage(page - 1);
});
}
}
exports.install = function (Vue, globalOptions, useVuex) {
var theme = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : "bootstrap3";
var template = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : "default";
var state = useVuex ? (0, _vuex["default"])("server") : (0, _normal["default"])();
var server = _merge["default"].recursive(true, (0, _table["default"])(), {
name: "server-table",
components: {
Pagination: _vuePagination.Pagination
},
render: templateCompiler.call(this, template, theme),
props: {
columns: {
type: Array,
required: true
},
url: {
type: String
},
name: {
type: String,
required: false
},
options: {
type: Object,
exports.install = function (Vue, globalOptions, useVuex) {
var theme = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : "bootstrap3";
var template = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : "default";
var client = _merge["default"].recursive(true, (0, _table["default"])(), {
name: "client-table",
components: {
Pagination: _vuePagination.Pagination
},
render: templateCompiler.call(this, template, theme),
props: {
columns: {
type: Array,
required: true
},
data: {
type: Array,
required: true
},
name: {
type: String,
required: false
},
options: {