Sha256: 80af6120f7139e7bd2bbac9594c7d5de947087fef9523adfbe66660e2269e8e2

Contents?: true

Size: 1.5 KB

Versions: 6

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"
                  <%= erb :"components/event", :locals => {comp: tab, events: tab.events, parent_id: tab.event_parent_id}%>>
          <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%>">
    <%= erb :"components/render", :locals => {:components => tab.components, :scope=> nil} if tab.components.any? %>
  </div>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
voom-presenters-2.1.2 views/mdc/components/tab_bar.erb
voom-presenters-2.1.0 views/mdc/components/tab_bar.erb
voom-presenters-2.0.3 views/mdc/components/tab_bar.erb
voom-presenters-2.0.2 views/mdc/components/tab_bar.erb
voom-presenters-2.0.1 views/mdc/components/tab_bar.erb
voom-presenters-2.0.0 views/mdc/components/tab_bar.erb