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

Version Path
playbook_ui-14.11.1.pre.alpha.PLAY1750pbcontenttagkitbutton5341 app/pb_kits/playbook/pb_advanced_table/table_header.html.erb
playbook_ui-14.11.1.pre.alpha.PLAY1750pbcontenttagkitbutton5340 app/pb_kits/playbook/pb_advanced_table/table_header.html.erb
playbook_ui-14.11.1.pre.alpha.PLAY1750pbcontenttagkitbutton5339 app/pb_kits/playbook/pb_advanced_table/table_header.html.erb
playbook_ui-14.12.0.pre.rc.3 app/pb_kits/playbook/pb_advanced_table/table_header.html.erb
playbook_ui-14.12.0.pre.rc.2 app/pb_kits/playbook/pb_advanced_table/table_header.html.erb
playbook_ui-14.12.0.pre.rc.1 app/pb_kits/playbook/pb_advanced_table/table_header.html.erb
playbook_ui-14.12.0.pre.rc.0 app/pb_kits/playbook/pb_advanced_table/table_header.html.erb
playbook_ui-14.10.0.pre.alpha.PLAY1774timelinelabelstepspacing5315 app/pb_kits/playbook/pb_advanced_table/table_header.html.erb
playbook_ui-14.10.0.pre.alpha.PLAY1774timelinelabelstepspacing5314 app/pb_kits/playbook/pb_advanced_table/table_header.html.erb
playbook_ui-14.10.0.pre.alpha.PLAY1750pbcontenttagkitbutton5308 app/pb_kits/playbook/pb_advanced_table/table_header.html.erb
playbook_ui-14.11.1 app/pb_kits/playbook/pb_advanced_table/table_header.html.erb
playbook_ui-14.11.0.pre.rc.17 app/pb_kits/playbook/pb_advanced_table/table_header.html.erb
playbook_ui-14.11.0 app/pb_kits/playbook/pb_advanced_table/table_header.html.erb
playbook_ui-14.11.0.pre.rc.16 app/pb_kits/playbook/pb_advanced_table/table_header.html.erb
playbook_ui-14.10.0.pre.alpha.play16825301 app/pb_kits/playbook/pb_advanced_table/table_header.html.erb
playbook_ui-14.11.0.pre.rc.15 app/pb_kits/playbook/pb_advanced_table/table_header.html.erb
playbook_ui-14.11.0.pre.rc.14 app/pb_kits/playbook/pb_advanced_table/table_header.html.erb
playbook_ui-14.11.0.pre.rc.13 app/pb_kits/playbook/pb_advanced_table/table_header.html.erb
playbook_ui-14.11.0.pre.rc.12 app/pb_kits/playbook/pb_advanced_table/table_header.html.erb
playbook_ui-14.10.0.pre.alpha.PLAY1774timelinelabelstepspacing5274 app/pb_kits/playbook/pb_advanced_table/table_header.html.erb