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_docs-14.11.1.pre.alpha.PLAY17445539 app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards_rails.html.erb
playbook_ui-14.11.1.pre.alpha.PLAY17445539 app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards_rails.html.erb
playbook_ui_docs-14.11.1.pre.alpha.PBNTR798datepickerturbo5537 app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards_rails.html.erb
playbook_ui-14.11.1.pre.alpha.PBNTR798datepickerturbo5537 app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards_rails.html.erb
playbook_ui_docs-14.11.1.pre.alpha.pbntr703collapsiblerowsrails5536 app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards_rails.html.erb
playbook_ui-14.11.1.pre.alpha.pbntr703collapsiblerowsrails5536 app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards_rails.html.erb
playbook_ui_docs-14.11.1.pre.alpha.PLAY1751pbcontenttagpt25529 app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards_rails.html.erb
playbook_ui-14.11.1.pre.alpha.PLAY1751pbcontenttagpt25529 app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards_rails.html.erb
playbook_ui_docs-14.11.1.pre.alpha.PBNTR7495495 app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards_rails.html.erb
playbook_ui-14.11.1.pre.alpha.PBNTR7495495 app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards_rails.html.erb
playbook_ui_docs-14.12.0.pre.rc.11 app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards_rails.html.erb
playbook_ui-14.12.0.pre.rc.11 app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards_rails.html.erb
playbook_ui_docs-14.12.0.pre.rc.10 app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards_rails.html.erb
playbook_ui-14.12.0.pre.rc.10 app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards_rails.html.erb
playbook_ui_docs-14.12.0.pre.rc.9 app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards_rails.html.erb
playbook_ui-14.12.0.pre.rc.9 app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards_rails.html.erb
playbook_ui_docs-14.12.0.pre.rc.8 app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards_rails.html.erb
playbook_ui-14.12.0.pre.rc.8 app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards_rails.html.erb
playbook_ui_docs-14.12.0.pre.rc.7 app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards_rails.html.erb
playbook_ui-14.12.0.pre.rc.7 app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards_rails.html.erb