Sha256: 3b0dc48b27e0efe53bfd989c148451f38760fbbd4b98f0b7b3d8c24a189faadf

Contents?: true

Size: 1.01 KB

Versions: 8

Compression:

Stored size: 1.01 KB

Contents

<%= content_tag(:div,
    id: object.id,
    data: object.data,
    class: object.classname,
    aria: object.aria) do %>

    <%= pb_rails("flex", props: {vertical: "center", spacing: "between", cursor: "pointer"}) do %>
      <%= pb_rails("flex/flex_item") do %>
        <%= content.presence %>
      <% end %>
      <%= pb_rails("flex/flex_item") do %>
        <div style="color: <%= object.icon_color %>">
        <% if object.icon.present? %>
          <%= pb_rails("icon", props: { icon: object.show_icon(object.icon)[0], id:"collapsible_open_icon", size: object.size }) %>
          <%= pb_rails("icon", props: { icon: object.show_icon(object.icon)[1], id:"collapsible_close_icon", size: object.size }) %>
        <% else %>
          <%= pb_rails("icon", props: { icon: "chevron-down", id:"collapsible_open_icon", size: object.size }) %>
          <%= pb_rails("icon", props: { icon: "chevron-up", id:"collapsible_close_icon", size: object.size }) %>
        <% end %>
        </div>
      <% end %>
    <% end %>
<% end %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
playbook_ui-12.36.0.pre.alpha.svgiconmethods1059 app/pb_kits/playbook/pb_collapsible/collapsible_main.html.erb
playbook_ui-12.36.0.pre.alpha.PLAY936momentjs1058 app/pb_kits/playbook/pb_collapsible/collapsible_main.html.erb
playbook_ui-12.36.0.pre.alpha.PLAY936momentjs1050 app/pb_kits/playbook/pb_collapsible/collapsible_main.html.erb
playbook_ui-12.36.0.pre.alpha.PLAY936momentjs1047 app/pb_kits/playbook/pb_collapsible/collapsible_main.html.erb
playbook_ui-12.36.0.pre.alpha.svgiconmethods1043 app/pb_kits/playbook/pb_collapsible/collapsible_main.html.erb
playbook_ui-12.36.0 app/pb_kits/playbook/pb_collapsible/collapsible_main.html.erb
playbook_ui-12.35.0.pre.alpha.iconpocwebfonts1023 app/pb_kits/playbook/pb_collapsible/collapsible_main.html.erb
playbook_ui-12.35.0 app/pb_kits/playbook/pb_collapsible/collapsible_main.html.erb