Sha256: 6b45947fa961083998c7df6c1a7576e0f3dc6076909981717a3351564a8cc96b

Contents?: true

Size: 1.79 KB

Versions: 21

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: object.td_classname(index) }) 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

21 entries across 21 versions & 1 rubygems

Version Path
playbook_ui-14.13.0.pre.rc.5 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.html.erb
playbook_ui-14.12.0.pre.alpha.PLAY1602lightboxoverlapnitrobug5781 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.html.erb
playbook_ui-14.13.0.pre.rc.4 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.html.erb
playbook_ui-14.12.0.pre.alpha.playrailsinputmaskissue5775 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.html.erb
playbook_ui-14.12.0.pre.alpha.PBNTR456fixedconftoastrailsautoclose5757 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.html.erb
playbook_ui-14.12.0.pre.alpha.PBNTR456fixedconftoastrailsautoclose5754 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.html.erb
playbook_ui-14.12.0.pre.alpha.PLAY1602lightboxoverlapnitrobugzindextoken5751 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.html.erb
playbook_ui-14.12.0.pre.alpha.PBNTR456fixedconftoastrailsautoclose5738 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.html.erb
playbook_ui-14.13.0.pre.rc.3 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.html.erb
playbook_ui-14.12.0.pre.alpha.PLAY1865reactdatepickerreinitializingbug5732 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.html.erb
playbook_ui-14.12.0.pre.alpha.PBNTR456fixedconftoastrailsautoclose5728 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.html.erb
playbook_ui-14.12.0.pre.alpha.play1862buttondisabledlinkbug5716 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.html.erb
playbook_ui-14.12.0.pre.alpha.play1862buttondisabledlinkbug5714 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.html.erb
playbook_ui-14.13.0.pre.rc.2 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.html.erb
playbook_ui-14.13.0.pre.rc.1 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.html.erb
playbook_ui-14.13.0.pre.rc.0 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.html.erb
playbook_ui-14.12.0.pre.alpha.advancedtablealignmentfixes5693 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.html.erb
playbook_ui-14.12.0.pre.alpha.testingwithfas5689 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.html.erb
playbook_ui-14.12.0.pre.alpha.testingwithfas5686 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.html.erb
playbook_ui-14.12.0.pre.alpha.play1828updateviteversion5680 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.html.erb