jl-datatable-mod
Version:
A datatable server side mode for vuejs ⚙️. Forked at v1.1.0
26 lines (20 loc) • 468 B
JavaScript
import component from './JlDatatable.vue'
function install(Vue) {
if (install.installed) return
install.installed = true
Vue.component('JlDatatable', component)
}
const plugin = {
install,
}
let GlobalVue = null
if (typeof window !== 'undefined') {
GlobalVue = window.Vue
} else if (typeof global !== 'undefined') {
GlobalVue = global.vue
}
if (GlobalVue) {
GlobalVue.use(plugin)
}
component.install = install
export default component