6.0.8
render
return ( <DataTable withBorder shadow="xs" columns={[ { accessor: 'name' }, { accessor: 'city' }, { accessor: 'state' }, { accessor: 'actions', title: <Text mr="xs">Row actions</Text>, textAlignment: 'right', render: (company) => ( <Group spacing={4} position="right" noWrap> <ActionIcon color="green" onClick={() => showInfo(company)}> <IconEye size={16} /> </ActionIcon> <ActionIcon color="blue" onClick={() => editInfo(company)}> <IconEdit size={16} /> </ActionIcon> <ActionIcon color="red" onClick={() => deleteCompany(company)}> <IconTrash size={16} /> </ActionIcon> </Group> ), }, ]} records={records} />);
click
right-click
.stopPropagation()