Sha256: 6643b15e98dde8215ee263eada40bd1f4f846854817c98daa1e0819fbabd8a05

Contents?: true

Size: 1.9 KB

Versions: 8

Compression:

Stored size: 1.9 KB

Contents

  <% if object.collapsible %>
    <%= pb_rails("collapsible", props: { name: "collapsible-nav-example", classname: object.collapsible_nav_classname }) do %>
      <%= pb_rails("collapsible/collapsible_main", props: { name: "default-collapsible-nav", icon: object.collapsible_icons, size: "xs", dark: object.dark, classname:object.margin_classes }) do %>
        <%= pb_content_tag(object.tag,
          dark: object.dark,
          href: object.link && object.link,
          target: object.link && object.target,
         ) do %>
          <% if object.image_url %>
            <%= pb_rails("image", props: { url: object.image_url, classname: "pb_nav_img_wrapper_collapsible" }) %>
          <% end %>
          <% if object.icon_left %>
            <%= pb_rails("icon", props: { icon: object.icon_left, classname: "pb_nav_list_item_icon_left_collapsible", fixed_width: true}) %>
          <% end %>
          <span class="pb_nav_list_item_text_collapsible">
            <%= object.text %>
          </span>
        <% end %>    
       <% end %>
      <%= pb_rails("collapsible/collapsible_content") do %>
        <%= content.presence %>
      <% end %>
    <% end %>
  <% else %>
    <%= pb_content_tag(object.tag,
      href: object.link && object.link,
      target: object.link && object.target
      ) do %>
      <% if object.image_url %>
        <%= pb_rails("image", props: { url: object.image_url, classname: "pb_nav_img_wrapper" }) %>
      <% end %>
      <% if object.icon_left %>
        <%= pb_rails("icon", props: { icon: object.icon_left, classname: "pb_nav_list_item_icon_left", fixed_width: true}) %>
      <% end %>
      <span class="pb_nav_list_item_text">
        <%= object.text %><%= content.presence %>
      </span>
      <% if object.icon_right %>
        <%= pb_rails("icon", props: { icon: object.icon_right, classname: "pb_nav_list_item_icon_right", fixed_width: true}) %>
      <% end %>
    <% end %>
  <% end %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
playbook_ui-13.26.0.pre.alpha.jasoncypretpatch12820 app/pb_kits/playbook/pb_nav/item.html.erb
playbook_ui-13.26.0.pre.alpha.jasoncypretpatch12816 app/pb_kits/playbook/pb_nav/item.html.erb
playbook_ui-13.25.0.pre.alpha.PBNTR291Dropdownrailsv22812 app/pb_kits/playbook/pb_nav/item.html.erb
playbook_ui-13.26.0 app/pb_kits/playbook/pb_nav/item.html.erb
playbook_ui-13.25.0.pre.alpha.PLAY1249fixTooltipswrappingformelementscausingmisalignment2785 app/pb_kits/playbook/pb_nav/item.html.erb
playbook_ui-13.25.0.pre.alpha.PLAY1249fixTooltipswrappingformelementscausingmisalignment2783 app/pb_kits/playbook/pb_nav/item.html.erb
playbook_ui-13.25.0.pre.alpha.PBNTR272Dropdownkitv42769 app/pb_kits/playbook/pb_nav/item.html.erb
playbook_ui-13.25.0.pre.alpha.barchartfix2766 app/pb_kits/playbook/pb_nav/item.html.erb