Sha256: 85f2d69d71f2640cca8bfd6e266db02e8037afeaf1d65d3c1a6aabe89ed3ba6f

Contents?: true

Size: 1.79 KB

Versions: 17

Compression:

Stored size: 1.79 KB

Contents

<%= pb_content_tag(:tr) do %>
        <% object.column_definitions.each_with_index do |column, index| %>
            <%= pb_rails("table/table_cell", props: { classname: "id-cell chrome-styles"}) do %>
                <%= pb_rails("flex", props:{ align: "center", justify: "start" }) do %>
                    <% if collapsible_trail && index.zero? %>
                        <% (1..depth).each do |i| %>
                            <% additional_offset = i > 1 ? (i - 1) * 0.25 : 0 %>
                            <% left_offset = i * 1.0 + additional_offset %>
                            <div class="collapsible-trail" style="left: <%= left_offset %>em"></div>
                        <% end %>
                    <% end %>

                    <div style="padding-left: <%= depth * 1.25 %>em">
                        <%= pb_rails("flex", props:{align: "center", column_gap: "xs"}) do %>
                            <% if index.zero? && object.row[:children].present? %>
                                <button class="gray-icon toggle-all-icon" onclick="expandAllSubRows(this, <%= depth %>)">
                                    <%= pb_rails("icon", props: { icon: "arrows-from-line", cursor: "pointer", fixed_width: true, padding_right:"xs" }) %>
                                </button>
                            <% end %>
                            <%= pb_rails("flex/flex_item") do %>
                                <% if index.zero? %>
                                    <%= pb_rails("caption", props: { margin_left: object.row[:children].present? ? "none" : "xs", text: object.subrow_header }) %>
                                <% end %>
                            <% end %>
                        <% end %>
                    </div>
                <% end %>
            <% end %>
        <% end %>
<% end %>

Version data entries

17 entries across 17 versions & 1 rubygems

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