Giter VIP home page Giter VIP logo

Comments (4)

SergeyMiracle avatar SergeyMiracle commented on August 14, 2024 4

If you using vee-validate plugin you can init it like this - Vue.use(VeeValidate, {fieldsBagName: 'formFields'})

from vuetable-2.

ratiw avatar ratiw commented on August 14, 2024

@hitoz Can you please provide more info? Please also make sure that you are really using vuetable-2, not vue-tables-2.

from vuetable-2.

hitoz avatar hitoz commented on August 14, 2024

yes, i am using this package
"vuetable-2": "^0.9.2",
`normalizeFields: function() {
if (typeof(this.fields) === 'undefined') {
this.warn('You need to provide "fields" prop.')
return
}

  var self = this
  var obj
  this.fields.forEach(function(field, i) {
    if (typeof (field) === 'string') {
      obj = {
        name: field,
        title: self.setTitle(field),
        titleClass: '',
        dataClass: '',
        callback: null,
        visible: true,
      }
    } else {
      obj = {
        name: field.name,
        title: (field.title === undefined) ? self.setTitle(field.name) : field.title,
        sortField: field.sortField,
        titleClass: (field.titleClass === undefined) ? '' : field.titleClass,
        dataClass: (field.dataClass === undefined) ? '' : field.dataClass,
        callback: (field.callback === undefined) ? '' : field.callback,
        visible: (field.visible === undefined) ? true : field.visible,
      }
    }
    Vue.set(self.fields, i, obj)
  })
},`

i got error from this line, this.fields.forEach(function(field, i) {
i try to log "this.fields" its not an array, its a FieldBag Object..

looks like it don't receive the parameter value or somewhere is overriding the variable value

from vuetable-2.

ratiw avatar ratiw commented on August 14, 2024

@hitoz I think your problem is the same as this

from vuetable-2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.