gregnb / gregnb/mui-datatables

Checkbox functionality through customBodyRender

Open
#454 1 comment 0 reactions 0 assignees View on GitHub
question
Dominant language
JavaScript
Stars
2.7k
Forks
906
PR merge metrics
No merged PRs in 30d

Description

More of a question than a bug -
How should one go about working with checkbox on as bodyrender for a column -
I have defined the column like -
{
name: "check",
label: "Check me",
options: {
customBodyRender: (value, tableMeta, updateValue) => {
return (

{
console.log(event.target.value);
updateValue(event);
}}
aria-label="My flag"
/>

);
}
}
}

How should I update the column value when checkbox is selected or modified?

## Your Environment

| Tech | Version |
|--------------|---------|
| Material-UI | 3.9.2 |
| MUI-datatables |2.0.0-beta-54 |
| React | 16.* |

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.