Sha256: 9703d5d6698063fc0694b03bc331406db99c7369f8cef17c09ee5539202febd4

Contents?: true

Size: 700 Bytes

Versions: 67

Compression:

Stored size: 700 Bytes

Contents

<% initial_items = [
  {
    id: "1",
    url: "https://unsplash.it/500/400/?image=633",
  },
  {
    id: "2",
    url: "https://unsplash.it/500/400/?image=634",
  },
  {
    id: "3",
    url: "https://unsplash.it/500/400/?image=637",
  },
] %>

<%= pb_rails("draggable", props: {initial_items: initial_items}) do %>
  <%= pb_rails("draggable/draggable_container") do %>
    <%= pb_rails("flex") do %>
      <% initial_items.each do |item| %>
        <%= pb_rails("draggable/draggable_item", props:{drag_id: item[:id]}) do %>
          <%= pb_rails("image", props: { alt: item[:id], size: "md", url: item[:url], margin: "xs" }) %>
        <% end %>
      <% end %>
    <% end %>
  <% end %>
<% end %>

Version data entries

67 entries across 67 versions & 2 rubygems

Version Path
playbook_ui_docs-14.8.0.pre.alpha.PLAY1658tanstackbump4657 app/pb_kits/playbook/pb_draggable/docs/_draggable_default_rails.html.erb
playbook_ui-14.8.0.pre.alpha.PLAY1658tanstackbump4657 app/pb_kits/playbook/pb_draggable/docs/_draggable_default_rails.html.erb
playbook_ui_docs-14.8.0.pre.alpha.PLAY1649rolloutheightglobalprops4635 app/pb_kits/playbook/pb_draggable/docs/_draggable_default_rails.html.erb
playbook_ui-14.8.0.pre.alpha.PLAY1649rolloutheightglobalprops4635 app/pb_kits/playbook/pb_draggable/docs/_draggable_default_rails.html.erb
playbook_ui_docs-14.9.0.pre.rc.8 app/pb_kits/playbook/pb_draggable/docs/_draggable_default_rails.html.erb
playbook_ui-14.9.0.pre.rc.8 app/pb_kits/playbook/pb_draggable/docs/_draggable_default_rails.html.erb
playbook_ui_docs-14.8.0.pre.alpha.PLAY1598floatinguiupgrade4617 app/pb_kits/playbook/pb_draggable/docs/_draggable_default_rails.html.erb
playbook_ui-14.8.0.pre.alpha.PLAY1598floatinguiupgrade4617 app/pb_kits/playbook/pb_draggable/docs/_draggable_default_rails.html.erb
playbook_ui_docs-14.9.0.pre.rc.7 app/pb_kits/playbook/pb_draggable/docs/_draggable_default_rails.html.erb
playbook_ui-14.9.0.pre.rc.7 app/pb_kits/playbook/pb_draggable/docs/_draggable_default_rails.html.erb
playbook_ui_docs-14.9.0.pre.rc.6 app/pb_kits/playbook/pb_draggable/docs/_draggable_default_rails.html.erb
playbook_ui-14.9.0.pre.rc.6 app/pb_kits/playbook/pb_draggable/docs/_draggable_default_rails.html.erb
playbook_ui_docs-14.9.0.pre.rc.5 app/pb_kits/playbook/pb_draggable/docs/_draggable_default_rails.html.erb
playbook_ui-14.9.0.pre.rc.5 app/pb_kits/playbook/pb_draggable/docs/_draggable_default_rails.html.erb
playbook_ui_docs-14.8.0.pre.alpha.pbntr661createstickyleftprop4612 app/pb_kits/playbook/pb_draggable/docs/_draggable_default_rails.html.erb
playbook_ui-14.8.0.pre.alpha.pbntr661createstickyleftprop4612 app/pb_kits/playbook/pb_draggable/docs/_draggable_default_rails.html.erb
playbook_ui_docs-14.8.0.pre.alpha.play1648heightglobalprops4606 app/pb_kits/playbook/pb_draggable/docs/_draggable_default_rails.html.erb
playbook_ui-14.8.0.pre.alpha.play1648heightglobalprops4606 app/pb_kits/playbook/pb_draggable/docs/_draggable_default_rails.html.erb
playbook_ui_docs-14.9.0.pre.rc.4 app/pb_kits/playbook/pb_draggable/docs/_draggable_default_rails.html.erb
playbook_ui-14.9.0.pre.rc.4 app/pb_kits/playbook/pb_draggable/docs/_draggable_default_rails.html.erb