Sha256: 21e7825d01a80e73efc7ec933ac4c45c36a42d774476dab01a8111e9027261be
Contents?: true
Size: 1.43 KB
Versions: 24
Compression:
Stored size: 1.43 KB
Contents
<%= pb_content_tag(:thead) do %> <% object.header_rows.each_with_index do |header_row, row_index| %> <%= pb_rails("table/table_row") do %> <% header_row.each_with_index do |cell, cell_index| %> <% header_id = cell[:accessor].present? ? cell[:accessor] : "header_#{row_index}_#{cell_index}" %> <%= pb_rails("table/table_header", props: { id: header_id, colspan: cell[:colspan], classname: [object.th_classname, ('last-header-cell' if cell[:is_last_in_group] && cell_index != 0)].compact.join(' '), sort_menu: cell[:accessor] ? cell[:sort_menu] : nil }) do %> <%= pb_rails("flex", props:{ align: "center", justify: cell_index.zero? ? "start" : row_index === header_rows.size - 1 ? "end" : "center", text_align: "end" }) do %> <% if cell_index.zero? && (object.enable_toggle_expansion == "header" || object.enable_toggle_expansion == "all") && row_index === header_rows.size - 1 %> <button class="gray-icon toggle-all-icon" onclick="expandAllRows(this); event.preventDefault();"> <%= pb_rails("icon", props: { icon: "arrows-from-line", cursor: "pointer", fixed_width: true, padding_right: "xs" }) %> </button> <% end %> <%= cell[:label] %> <% end %> <% end %> <% end %> <% end %> <% end %> <% end %>
Version data entries
24 entries across 24 versions & 1 rubygems