Sha256: 0d1723118dd19dd116728f8920f414381662448a20cfeb00c70d98e262c3cd58
Contents?: true
Size: 1 KB
Versions: 17
Compression:
Stored size: 1 KB
Contents
<%= content_tag(:div, aria: object.aria, class: object.classname, data: object.data, id: object.id, **combined_html_options) do %> <% if enable_drag %> <%= pb_rails("draggable", props: {initial_items: object.items}) do %> <%= pb_rails("draggable/draggable_container") do %> <%= pb_rails("list", props: {ordered: false}) do %> <% object.items.each do |item| %> <%= pb_rails("draggable/draggable_item", props: {drag_id: item[:drag_id]}) do %> <%= pb_rails("selectable_list/selectable_list_item", props: item.merge(variant: object.variant, id: object.get_id(item), drag_id: item[:drag_id]) )%> <% end %> <% end %> <% end %> <% end %> <% end %> <% else %> <%= pb_rails("list") do %> <% object.items.each do |item| %> <%= pb_rails("selectable_list/selectable_list_item", props: item.merge(variant: object.variant, id: object.get_id(item)) )%> <% end %> <% end %> <% end %> <% end %>
Version data entries
17 entries across 17 versions & 1 rubygems