File: tabset.handlebars

package info (click to toggle)
elixir-ex-doc 0.35.1%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,784 kB
  • sloc: javascript: 2,848; makefile: 15; xml: 12; sh: 5
file content (20 lines) | stat: -rw-r--r-- 648 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<div role="tablist" class="tabset-tablist">
  {{#each tabs}}
    <button role="tab" id="tab-{{setIndex}}-{{@index}}" class="tabset-tab"
    tabindex="{{#if @index}}-1{{else}}0{{/if}}"
    aria-selected="{{#if @index}}false{{else}}true{{/if}}"
    aria-controls="tabpanel-{{setIndex}}-{{@index}}">
      {{this.label}}
    </button>
  {{/each}}
</div>

{{#each tabs}}
  <div role="tabpanel" id="tabpanel-{{setIndex}}-{{@index}}" class="tabset-panel"
    {{#if @index}}hidden{{/if}} tabindex="{{#if @index}}-1{{else}}0{{/if}}"
    aria-labelledby="tab-{{setIndex}}-{{@index}}">
    {{#each content}}
      {{{this}}}
    {{/each}}
  </div>
{{/each}}