Sha256: cd889ad35e0e5cc85336d23d1f103d18375cd4162ee6b547bd4fcb8f893083d2

Contents?: true

Size: 973 Bytes

Versions: 286

Compression:

Stored size: 973 Bytes

Contents

<%= content_tag(:div,
    aria: object.aria,
    id: object.id,
    data: object.data,
    class: object.classname) do %>
    <% if object.tooltip_text.present? %>
        <%= pb_rails("tooltip", props: {
          trigger_element_id: object.tooltip_id,
          tooltip_id: "tooltip-2",
          position: 'top',
          dark: true,
        }) do %>
          <%= object.tooltip_text %>
        <% end %>
    <% end %>

    <%= link_to object.link_url, id: object.tooltip_id, 'aria-label': object.link_aria_label do %>
      <%= pb_rails("avatar", props: {
        dark: object.dark,
        name: object.name,
        size: object.size,
        image_alt: object.image_alt,
        image_url: object.image_url,
        class: "avatar_action"
      }) %>
      <div class="icon <%= object.dark ? 'dark' : '' %> ">
        <%= pb_rails("icon", props: {
          dark: object.dark,
          icon: object.action_icons
        }) %>
      </div>
    <% end %>
<% end %>

Version data entries

286 entries across 286 versions & 1 rubygems

Version Path
playbook_ui-12.7.1.pre.alpha.rubyandnpmalpharelease293 app/pb_kits/playbook/pb_avatar_action_button/avatar_action_button.html.erb
playbook_ui-12.7.1.pre.alpha.rubyandnpmalpharelease292 app/pb_kits/playbook/pb_avatar_action_button/avatar_action_button.html.erb
playbook_ui-12.7.1.pre.alpha.rubyandnpmalpharelease291 app/pb_kits/playbook/pb_avatar_action_button/avatar_action_button.html.erb
playbook_ui-12.7.1.pre.alpha.alpharubyrelease281 app/pb_kits/playbook/pb_avatar_action_button/avatar_action_button.html.erb
playbook_ui-12.7.1.pre.alpha.menu2 app/pb_kits/playbook/pb_avatar_action_button/avatar_action_button.html.erb
playbook_ui-12.7.1.pre.alpha.menu1 app/pb_kits/playbook/pb_avatar_action_button/avatar_action_button.html.erb
playbook_ui-12.7.1 app/pb_kits/playbook/pb_avatar_action_button/avatar_action_button.html.erb
playbook_ui-12.7.0 app/pb_kits/playbook/pb_avatar_action_button/avatar_action_button.html.erb
playbook_ui-12.6.0.pre.alpha.sectionseparator1 app/pb_kits/playbook/pb_avatar_action_button/avatar_action_button.html.erb
playbook_ui-12.6.0.pre.alpha.menuyml1 app/pb_kits/playbook/pb_avatar_action_button/avatar_action_button.html.erb
playbook_ui-12.6.0.pre.alpha.collapsible1 app/pb_kits/playbook/pb_avatar_action_button/avatar_action_button.html.erb
playbook_ui-12.6.0.pre.alpha.cssphone1 app/pb_kits/playbook/pb_avatar_action_button/avatar_action_button.html.erb
playbook_ui-12.6.0 app/pb_kits/playbook/pb_avatar_action_button/avatar_action_button.html.erb
playbook_ui-12.5.0.pre.alpha.datepickerinput1 app/pb_kits/playbook/pb_avatar_action_button/avatar_action_button.html.erb
playbook_ui-12.5.0.pre.alpha.phonerails1 app/pb_kits/playbook/pb_avatar_action_button/avatar_action_button.html.erb
playbook_ui-12.5.0.pre.alpha.datepicker1 app/pb_kits/playbook/pb_avatar_action_button/avatar_action_button.html.erb
playbook_ui-12.5.0.pre.alpha.filter1 app/pb_kits/playbook/pb_avatar_action_button/avatar_action_button.html.erb
playbook_ui-12.5.0 app/pb_kits/playbook/pb_avatar_action_button/avatar_action_button.html.erb
playbook_ui-12.4.0.pre.alpha.map1 app/pb_kits/playbook/pb_avatar_action_button/avatar_action_button.html.erb
playbook_ui-12.4.0.pre.alpha.devdocstest1 app/pb_kits/playbook/pb_avatar_action_button/avatar_action_button.html.erb