app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_rails
The column_styling
prop is an optional item that can be used within column_definitions
as shown in the code snippet below. It is an object that has 2 optional key/value pairs:
1) header_alignment
: This will allow you to control alignment of header content which is set to right aligned by default. you can set this to left
, right
or center
.
2) cell_alignment
: This will allow you to control alignment of content within all cells in the given column. This is set to right aligned by default. you can set this to left
, right
or center
.
column_styling
can be used within the column_definition of all the columns or some of them, as shown. Each column has its own individual control in this way.