Closed
Description
It would be nice if Table
was able to be styled as much as a HTML table can.
Use case: Center some cells
I think the way we can approach this with the current implementation is to add an optional $options
parameter to the methods adding/setting rows.
The array would look as such:
[
cellNumber => [
propertyA => value,
propertyB => value,
colspan => value,
rowspan => value,
align => left|center|right,
format => '<info>%s</info>',
]
]
By using keyed cell number (for a single row), we can specify data for only specific cells (does not force the user to specify an empty array for each cell).
Any undefined property implies the default values for the table.