Sha256: edda1f498b8b9985f9b0928faa4763fd56f17114a4a1df5c5e72143daea08ed1

Contents?: true

Size: 694 Bytes

Versions: 11

Compression:

Stored size: 694 Bytes

Contents

<div class="flex" data-target="tab-switcher">
  <div class="button-group">
    <% visible_items.each do |tab| %>
      <%= a_link tab_path(tab),
          color: selected?(tab) ? :gray : :primary,
          rounded: false,
          size: :sm,
          class: selected?(tab) ? ' bg-gray-100 border-gray-300' : ' z-20',
          title: tab.description,
          data: {
            tippy: tab.description.present? ? 'tooltip' : '',
            control: "view-type-toggle-#{tab.name}",
            selected: selected?(tab),
            action: 'click->tabs#changeTab',
            tabs_id_param: tab.name
          } do %>
        <%= tab.name %>
      <% end %>
    <% end %>
  </div>
</div>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
avo-2.11.2.pre.3 app/components/avo/tab_switcher_component.html.erb
avo-2.11.2.pre.2 app/components/avo/tab_switcher_component.html.erb
avo-2.11.2.pre.1 app/components/avo/tab_switcher_component.html.erb
avo-2.11.1.pre.3 app/components/avo/tab_switcher_component.html.erb
avo-2.11.1 app/components/avo/tab_switcher_component.html.erb
avo-2.11.1.pre.2 app/components/avo/tab_switcher_component.html.erb
avo-2.11.1.pre.1 app/components/avo/tab_switcher_component.html.erb
avo-2.11.0 app/components/avo/tab_switcher_component.html.erb
avo-2.10.3.pre.1 app/components/avo/tab_switcher_component.html.erb
avo-2.10.2 app/components/avo/tab_switcher_component.html.erb
avo-2.10.0 app/components/avo/tab_switcher_component.html.erb