% col_count = object.columns&.length || 0 row_count = object.columns&.map { |c| c.lines.length }&.max || 0 def label_cell_style(column) return unless column ["font-weight: #{options.bold_weight}"].tap do |styles| styles << "width: #{column.label_width}%" if column.label_width end.join(';') end def value_cell_style(column) return unless column [].tap do |styles| styles << "text-align: #{column.align}" if !column.align.to_s.empty? styles << "width: #{column.value_width}%" if column.value_width end.join(';') end %>
<%= line&.label %> | <%= line&.value %> | <% end -%>