SQ-UI/ng-sq-ui

View on GitHub
projects/ng-datatable/src/lib/datatable-column/datatable-column.component.html

Summary

Maintainability
Test Coverage
A
100%
<div role="columnheader"
     class="column">
  {{name}}

  <button type="button" (click)="sort()" *ngIf="isSortable">
    <i class="fas"
       aria-hidden="true"
       [ngClass]="{
         'fa-sort': isSortedByAscending == undefined,
         'fa-sort-up': isSortedByAscending === true,
         'fa-sort-down': isSortedByAscending === false
       }">
    </i>
  </button>
</div>