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