-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathth-sortable.hbs
34 lines (34 loc) · 927 Bytes
/
th-sortable.hbs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<span
class="au-c-data-table__header-title au-c-data-table__header-title--sortable
{{if this.isSorted ' is-active'}}"
>
{{this.label}}
{{#if (eq this.order "desc")}}
<button
role="button"
{{action "inverseSorting"}}
class="au-c-data-table__sort"
>
<span class="au-u-hidden-visually">Oplopend sorteren</span>
<AuIcon @icon={{this.NavUpIcon}} />
</button>
{{else if (eq this.order "asc")}}
<button
role="button"
{{action "inverseSorting"}}
class="au-c-data-table__sort"
>
<span class="au-u-hidden-visually">Aflopend sorteren</span>
<AuIcon @icon={{this.NavDownIcon}} />
</button>
{{else}}
<button
role="button"
{{action "inverseSorting"}}
class="au-c-data-table__sort"
>
<span class="au-u-hidden-visually">Sorteren</span>
<AuIcon @icon={{this.NavUpDownIcon}} />
</button>
{{/if}}
</span>