all files / common/core/sorting/ sort-indicator.component.ts

100% Statements 6/6
100% Branches 0/0
100% Functions 2/2
100% Lines 4/4
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21                                 
/*
 *  @license
 *  Copyright Hôpitaux Universitaires de Genève. All Rights Reserved.
 *
 *  Use of this source code is governed by an Apache-2.0 license that can be
 *  found in the LICENSE file at https://github.com/DSI-HUG/dejajs-components/blob/master/LICENSE
 */
 
import { Component, Input } from '@angular/core';
import { ISortInfos } from './sort-infos.model';
 
@Component({
    selector: 'deja-sort-indicator',
    styles: [ require('./sort-indicator.component.scss') ],
    template: `<span [attr.sortorder]="sortInfos ? sortInfos.order : null"><mat-icon fontSet="deja-icons" fontIcon="arrow_upward"></mat-icon></span>`,
})
export class DejaSortIndicatorComponent {
    @Input('sort-infos') public sortInfos: ISortInfos;
}