Sha256: d05d351ea6f06279a283db3c878843320d4609e604561d9fc661b1c91d9e1294

Contents?: true

Size: 1.5 KB

Versions: 12

Compression:

Stored size: 1.5 KB

Contents

<div id="<%= comp.id %>"
  class="v-tab-bar mdc-tab-bar" role="tablist">
  <div class="mdc-tab-scroller">
    <div class="mdc-tab-scroller__scroll-area">
      <div class="mdc-tab-scroller__scroll-content">

        <% for tab in comp.tabs %>
          <button class="mdc-tab
                    <%= 'mdc-tab--active' if tab.selected %>
                    <%= 'mdc-tab--stacked' if tab.stacked %>"
                  role="tab" aria-selected="<%= tab.selected %>" tabindex="0"
                  <%= partial "components/event", :locals => {comp: tab, events: tab.events, parent_id: tab.event_parent_id} if tab.events&.any? %>>
          <span class="mdc-tab__content">
           <% if tab.icon %>
            <span class="mdc-tab__icon material-icons"><%= tab.icon %></span>
            <% end %>
            <span class="mdc-tab__text-label"><%= tab.label %></span>
          </span>
            <span class="mdc-tab-indicator
                    <%= 'mdc-tab-indicator--active' if tab.selected %>">
            <span class="mdc-tab-indicator__content mdc-tab-indicator__content--underline"></span>
          </span>
            <span class="mdc-tab__ripple"></span>
          </button>
        <% end %>
      </div>
    </div>
  </div>
</div>
<% comp.tabs.each_with_index do |tab, index|
  next unless tab.components.any? %>
  <div class="v-tab-content <%=tab.selected ? nil : 'v-hidden' %>" data-tab-id="<%=index%>">
    <%= partial "components/render", :locals => {:components => tab.components, :scope=> nil}  %>
  </div>
<% end %>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
coprl-3.0.0.beta.12 views/mdc/components/_tab_bar.erb
coprl-3.0.0.beta.11 views/mdc/components/_tab_bar.erb
coprl-3.0.0.beta.10 views/mdc/components/_tab_bar.erb
coprl-3.0.0.beta.9 views/mdc/components/_tab_bar.erb
coprl-3.0.0.beta.8 views/mdc/components/_tab_bar.erb
coprl-3.0.0.beta.7 views/mdc/components/_tab_bar.erb
coprl-3.0.0.beta.6 views/mdc/components/_tab_bar.erb
coprl-3.0.0.beta.5 views/mdc/components/_tab_bar.erb
coprl-3.0.0.beta.4 views/mdc/components/_tab_bar.erb
coprl-3.0.0.beta.3 views/mdc/components/_tab_bar.erb
coprl-3.0.0.beta.2 views/mdc/components/_tab_bar.erb
coprl-3.0.0.beta.1 views/mdc/components/_tab_bar.erb