'align' option NOT affect column header - in some case, is it OK ?
Masterz69 opened this issue · comments
flex-table-card version/revision 3395cff
Column obey 'align' option, but header stay left-aligned. Config example and screenshot attached.
- data: battery
name: Battery (%)
align: right
modify: 'isNaN(parseInt(x, 10)) ? "-" : parseInt(x, 10)'
- data: voltage
name: Voltage
align: right
modify: 'isNaN(parseInt(x, 10)) ? "-" : parseInt(x, 10)'
...
th.left: 'padding: 0px 0px 10px 10px'
th.right: 'padding: 0px 0px 10px 10px'
If change from th.left + th.right to 'just' th, like:
th: 'padding: 0px 0px 10px 10px'
header alignment follow column: