1

Have in Grid.js an option of "inline edit" cell values or possibility/plugin to implements them?

Like this:

Apmu
  • 13
  • 4

1 Answers1

0

You can add the "contenteditable" : "true" attribute (part of HTML 5) to your column definition:

new gridjs.Grid({
columns: [
    { id: 'name',
        name: 'Name',
        sort: false,
        attributes:{ 
            "contenteditable" : "true"
        }
    },
    { id: 'email',
        name: 'Email',
        sort: false 
    },
    ...

You can then add a listener (with vanilla JavaScript or whatever framework you're using) for the "input" event - which will fire when the data changes.

Tyler2P
  • 2,324
  • 26
  • 22
  • 31
clickguy
  • 39
  • 6