Using custom editing components #8
Replies: 5 comments 6 replies
-
That's what I want to discuss. Should allow cell editing mode with click event (for now, just doubleClick event) and render editing fields (like date picker, color picker, multiple select, ....) and using Tab and Shift + Tab key to switch between fields |
Beta Was this translation helpful? Give feedback.
-
@TheLoneDeveloper have you managed to get it work ? |
Beta Was this translation helpful? Give feedback.
-
I would love to see an example on this. |
Beta Was this translation helpful? Give feedback.
-
Hi @mnemyx , your code works great for editing, but, i'm using checkbox and a select in same modal. I noted that the select is reseting the value in all checkboxes on change value, it´s very strange. I made a refactor, it´s worked for me, maybe help others EditTableModalCheckBox.tsx: `import { Checkbox } from "@mantine/core"; export default function EditTableModalCheckBox<T extends Record<string, any>>(props: {
}` Column def: |
Beta Was this translation helpful? Give feedback.
-
I have a Problem |
Beta Was this translation helpful? Give feedback.
-
const columns = [ { accessorKey: 'project', header: 'Project', Edit: ({ cell, column, table }) => <NativeSelect data={[...]} />, }, ... ];
Do i have to manually manage the state from this select or is there a handleChange?
So the values are automatically passed on to onEditingRowSave?
Beta Was this translation helpful? Give feedback.
All reactions