Sha256: 213b508d35552674e8131cbe882a89e97fbc709d5889eaa567d128d5ff81e349

Contents?: true

Size: 1.98 KB

Versions: 340

Compression:

Stored size: 1.98 KB

Contents

<% initial_items = [
  { id: "21", name: "Joe Black" },
  { id: "22", name: "Nancy White" },
  { id: "23", name: "Bill Green" },
] %>

<%= pb_rails("draggable", props: {initial_items: initial_items}) do %>
  <%= pb_rails("draggable/draggable_container") do %>
    <% initial_items.each do |item| %>
      <%= pb_rails("draggable/draggable_item", props:{drag_id: item[:id]}) do %>
        <%= pb_rails("card", props: {highlight: {position: "side", color:"primary"}, margin_bottom: "xs", padding: "xs"}) do %>
          <%= pb_rails("flex", props:{align_items: "stretch", flex_direction:"column"}) do %>
            <%= pb_rails("flex", props:{gap: "xs"}) do %>
              <%= pb_rails("title", props: { text: item[:name], tag: "h4", size: 4 }) %>
              <%= pb_rails("badge", props: {text:"35-12345" ,variant: "primary"}) %>
            <% end %>
            <%= pb_rails("caption", props: { size: "xs", text: "8:00A • Township Name • 90210" }) %>
            <%= pb_rails("flex", props:{gap: "xxs", spacing:"between"}) do %>
              <%= pb_rails("flex", props:{gap: "xxs"}) do %>
                <%= pb_rails("caption", props: { size: "xs" , color: "error" }) do %>
                  <%= pb_rails("icon", props: { icon: "house-circle-exclamation", fixed_width: true }) %>
                <% end %>
                <%= pb_rails("caption", props: { size: "xs" , color: "success" }) do %>
                  <%= pb_rails("icon", props: { icon: "file-circle-check", fixed_width: true }) %>
                <% end %>
              <% end %>
              <%= pb_rails("flex") do %>
                <%= pb_rails("badge", props: {text:"Schedule QA" ,variant: "warning", rounded: true}) %>
                <%= pb_rails("badge", props: {text:"Flex" ,variant: "primary", rounded: true}) %>
                <%= pb_rails("badge", props: {text:"R99" ,variant: "primary", rounded: true}) %>
            <% end %>
            <% end %>
          <% end %>
        <% end %>
      <% end %>
    <% end %>
  <% end %>
<% end %>

Version data entries

340 entries across 340 versions & 2 rubygems

Version Path
playbook_ui-14.11.0.pre.rc.17 app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards_rails.html.erb
playbook_ui-14.11.0 app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards_rails.html.erb
playbook_ui_docs-14.11.0.pre.rc.16 app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards_rails.html.erb
playbook_ui-14.11.0.pre.rc.16 app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards_rails.html.erb
playbook_ui_docs-14.10.0.pre.alpha.play16825301 app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards_rails.html.erb
playbook_ui-14.10.0.pre.alpha.play16825301 app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards_rails.html.erb
playbook_ui_docs-14.11.0.pre.rc.15 app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards_rails.html.erb
playbook_ui-14.11.0.pre.rc.15 app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards_rails.html.erb
playbook_ui_docs-14.11.0.pre.rc.14 app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards_rails.html.erb
playbook_ui-14.11.0.pre.rc.14 app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards_rails.html.erb
playbook_ui_docs-14.11.0.pre.rc.13 app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards_rails.html.erb
playbook_ui-14.11.0.pre.rc.13 app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards_rails.html.erb
playbook_ui_docs-14.11.0.pre.rc.12 app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards_rails.html.erb
playbook_ui-14.11.0.pre.rc.12 app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards_rails.html.erb
playbook_ui_docs-14.10.0.pre.alpha.PLAY1774timelinelabelstepspacing5274 app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards_rails.html.erb
playbook_ui-14.10.0.pre.alpha.PLAY1774timelinelabelstepspacing5274 app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards_rails.html.erb
playbook_ui_docs-14.10.0.pre.alpha.play1465attempt25272 app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards_rails.html.erb
playbook_ui-14.10.0.pre.alpha.play1465attempt25272 app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards_rails.html.erb
playbook_ui_docs-14.10.0.pre.alpha.play16825244 app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards_rails.html.erb
playbook_ui-14.10.0.pre.alpha.play16825244 app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards_rails.html.erb