Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't edit a column when field is defined as a function #326

Closed
JWesorick opened this issue Oct 5, 2021 · 1 comment · Fixed by #343
Closed

Can't edit a column when field is defined as a function #326

JWesorick opened this issue Oct 5, 2021 · 1 comment · Fixed by #343
Labels

Comments

@JWesorick
Copy link
Contributor

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
Copy link
Member

ota-meshi commented Dec 17, 2021

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 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants