gregnb / gregnb/mui-datatables
Checkbox functionality through customBodyRender
- 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.