Method: Playbook::PbAdvancedTable::TableHeader#header_rows

Defined in:
app/pb_kits/playbook/pb_advanced_table/table_header.rb

#header_rowsObject



39
40
41
42
43
44
45
46
47
# File 'app/pb_kits/playbook/pb_advanced_table/table_header.rb', line 39

def header_rows
  wrapped_columns = wrap_leaf_columns(column_definitions)

  rows = []
  max_depth = compute_max_depth(wrapped_columns)
  max_depth.times { rows << [] }
  process_columns(wrapped_columns, rows, 0, max_depth)
  rows
end