Can't edit a column when `field` is defined as a function
JWesorick opened this issue · 1 comments
JWesorick commented
See example: https://codepen.io/JWesorick/pen/powXbzY
When a column has the field
property set to a function and action
set to "input"
, that column can no longer be edited.
ota-meshi commented
Thank you for the question.
If you want to use function and enable a set of values, you need to use the object, and the get
and set
properties.
field: {get:(rec) => rec.fname, set:(rec,val)=>rec.fname=val},
Probably the method is not described in the documentation 😅