Sha256: 10c20de832e3c742fc518c78d97990ed436deb62f6d3ce1da146932e2b54fb30

Contents?: true

Size: 1.85 KB

Versions: 9

Compression:

Stored size: 1.85 KB

Contents

<%= content_tag(:th,
    colspan: object.colspan,
    aria: object.aria,
    class: object.classname,
    data: object.data,
    id: "pb-th#{object.id}") do %>
  <% unless sorting_style? %>
    <%= pb_rails("flex", props:{ align: object.align_content, justify: object.justify_sort_icon, classname: "pb_th_nolink" }) do %>
      <%= content.presence || object.text %>
    <% end %>
  <% else %>
    <%= link_to next_link, style: link_style do %>
      <%= pb_rails("flex", props:{ align: object.align_content, justify: object.justify_sort_icon, classname: "pb_th_link" }) do %>
        <%= content.presence || object.text %>
          <% if sorting_style? %>
            <%= pb_rails("icon", props: { icon: object.sort_icon(active_item[:direction], active_item[:active]),
                                          fixed_width: true,
                                          classname: active_item.any? ? "pb_th_active" : "",
                                          padding_left: "xs" }) %>
        <% end %>
      <% end %>
    <% end %>
    <% if use_dropdown_select %>
      <%= pb_rails("popover", props: { classname: "pb_filter_sort_menu",
                                      close_on_click: "outside",
                                      trigger_element_id: "pb-th#{object.id}",
                                      tooltip_id: "sort-filter-btn-tooltip#{object.id}",
                                      position: object.placement ,
                                      padding: 'none'}) do %>
        <%= pb_rails("nav", props: {classname: "pb_table_header_dropdown"}) do %>
          <% object.sort_menu.each do |item| %>
            <%= pb_rails("nav/item", props: { text: item[:item], link: item[:link], icon_right: sort_icon(item[:direction], item[:active]), active: item[:active] }) %>
          <% end %>
        <% end %>
      <% end %>
    <% end %>
  <% end %>
<% end %>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
playbook_ui-13.7.0.pre.alpha.play845allkitsbytypes1234 app/pb_kits/playbook/pb_table/table_header.html.erb
playbook_ui-13.7.0.pre.alpha.play845allkitsbytypes1232 app/pb_kits/playbook/pb_table/table_header.html.erb
playbook_ui-13.7.0.pre.alpha.play845allkitsbytypes1231 app/pb_kits/playbook/pb_table/table_header.html.erb
playbook_ui-13.7.0.pre.alpha.play978makehighchartsadevdependencypoc1223 app/pb_kits/playbook/pb_table/table_header.html.erb
playbook_ui-13.6.0.pre.alpha.play845allkitsbytypes1219 app/pb_kits/playbook/pb_table/table_header.html.erb
playbook_ui-13.7.0 app/pb_kits/playbook/pb_table/table_header.html.erb
playbook_ui-13.6.0.pre.alpha.tiptapreacthookformbug1210 app/pb_kits/playbook/pb_table/table_header.html.erb
playbook_ui-13.6.0 app/pb_kits/playbook/pb_table/table_header.html.erb
playbook_ui-13.5.0.pre.alpha.play984collapsiblekithidestooltips1203 app/pb_kits/playbook/pb_table/table_header.html.erb