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.9.0.pre.rc.3 app/pb_kits/playbook/pb_draggable/docs/_draggable_default_rails.html.erb
playbook_ui-14.9.0.pre.rc.3 app/pb_kits/playbook/pb_draggable/docs/_draggable_default_rails.html.erb
playbook_ui_docs-14.9.0.pre.rc.2 app/pb_kits/playbook/pb_draggable/docs/_draggable_default_rails.html.erb
playbook_ui-14.9.0.pre.rc.2 app/pb_kits/playbook/pb_draggable/docs/_draggable_default_rails.html.erb
playbook_ui_docs-14.8.0.pre.alpha.revert3916revert3893PBNTR667railstypeaheadformintegration4567 app/pb_kits/playbook/pb_draggable/docs/_draggable_default_rails.html.erb
playbook_ui-14.8.0.pre.alpha.revert3916revert3893PBNTR667railstypeaheadformintegration4567 app/pb_kits/playbook/pb_draggable/docs/_draggable_default_rails.html.erb
playbook_ui_docs-14.8.0.pre.alpha.revert3916revert3893PBNTR667railstypeaheadformintegration4565 app/pb_kits/playbook/pb_draggable/docs/_draggable_default_rails.html.erb
playbook_ui-14.8.0.pre.alpha.revert3916revert3893PBNTR667railstypeaheadformintegration4565 app/pb_kits/playbook/pb_draggable/docs/_draggable_default_rails.html.erb
playbook_ui_docs-14.8.0.pre.alpha.PLAY1598floatinguiupgrade4563 app/pb_kits/playbook/pb_draggable/docs/_draggable_default_rails.html.erb
playbook_ui-14.8.0.pre.alpha.PLAY1598floatinguiupgrade4563 app/pb_kits/playbook/pb_draggable/docs/_draggable_default_rails.html.erb
playbook_ui_docs-14.8.0.pre.alpha.play1648heightglobalprops4559 app/pb_kits/playbook/pb_draggable/docs/_draggable_default_rails.html.erb
playbook_ui-14.8.0.pre.alpha.play1648heightglobalprops4559 app/pb_kits/playbook/pb_draggable/docs/_draggable_default_rails.html.erb
playbook_ui_docs-14.9.0.pre.rc.1 app/pb_kits/playbook/pb_draggable/docs/_draggable_default_rails.html.erb
playbook_ui-14.9.0.pre.rc.1 app/pb_kits/playbook/pb_draggable/docs/_draggable_default_rails.html.erb
playbook_ui_docs-14.8.0.pre.alpha.PLAY16254545 app/pb_kits/playbook/pb_draggable/docs/_draggable_default_rails.html.erb
playbook_ui-14.8.0.pre.alpha.PLAY16254545 app/pb_kits/playbook/pb_draggable/docs/_draggable_default_rails.html.erb
playbook_ui_docs-14.8.0.pre.alpha.PLAY1615movenegativetoleftofcurrencysign4543 app/pb_kits/playbook/pb_draggable/docs/_draggable_default_rails.html.erb
playbook_ui-14.8.0.pre.alpha.PLAY1615movenegativetoleftofcurrencysign4543 app/pb_kits/playbook/pb_draggable/docs/_draggable_default_rails.html.erb
playbook_ui_docs-14.8.0.pre.alpha.PLAY1615movenegativetoleftofcurrencysign4539 app/pb_kits/playbook/pb_draggable/docs/_draggable_default_rails.html.erb
playbook_ui-14.8.0.pre.alpha.PLAY1615movenegativetoleftofcurrencysign4539 app/pb_kits/playbook/pb_draggable/docs/_draggable_default_rails.html.erb