2 Answers2

0
    import { VuetableFieldCheckbox } from "vuetable-2";
    {
       name: VuetableFieldCheckbox,
       titleClass: 'center aligned',
       dataClass: 'center aligned'
    }

maybe due to update of vuetable, it must config like this. working with me

ginbarca
  • 3
  • 3
  • Generally, answers are much more helpful if they include an explanation of what the code is intended to do, and why that solves the problem without introducing others. – DCCoder Sep 28 '20 at 22:11
0

I had the same problem. I solved it by registering the VuetableFieldCheckbox component globally. This is accomplished by adding these lines to the project's main.js file:

import { VuetableFieldCheckbox } from 'vuetable-2'

Vue.component('vuetable-field-checkbox', VuetableFieldCheckbox)

Note: any special field component that is referenced by the name: '__some-component' convention in a field definition must be registered globally in the same fashion as shown above.

Ari Clark
  • 1
  • 1