Currency align
Describe the bug Column {...type: 'currency'} Header cell has left align Left, cells have align Right.
Expected behavior Both header and cell should have the same align
Screenshots Before fix: https://clip2net.com/s/44I0rXq After fix: https://clip2net.com/s/44I0Gme
Solution
m-table-header.js :96
align: ['numeric'].indexOf(columnDef.type) !== -1 ? "right" : "left",
Add 'currency'
align: ['numeric', 'currency'].indexOf(columnDef.type) !== -1 ? "right" : "left",
+1
I'm having the same issue!
+1
Hopefully I can get around to making a PR soon, but I have been doing this.
columns={[{cellStyle: { textAlign: 'left' }, ...}]}
Furthermore the sort icon appears on the right as opposed to the left. These should be reversed when the alignment is changed to the right.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You can reopen it if it required.