Question: How define column-cells alignment ?
Closed this issue · 1 comments
pcclickbit commented
bencripps commented
I would use a custom renderer which would allow you to write some custom CSS for these columns; something like:
const columns = [
{
name: 'Risk',
dataIndex: 'risk',
renderer: ({ column, value, row }) => {
return (
<span className="numeric-column">
{value}
</span>
);
}
}
];
And then simply add some CSS:
.numeric-column {
text-align: right;
}
For more information about renderers, you can check out these docs.