mirror of https://github.com/abpframework/abp.git
4 changed files with 44 additions and 8 deletions
@ -0,0 +1,3 @@ |
|||
<span [class]="float-right {{ iconClass }}"> |
|||
<i [class]="fa {{ icon }}"></i> |
|||
</span> |
|||
@ -0,0 +1,29 @@ |
|||
import { Component, Input, OnInit } from '@angular/core'; |
|||
|
|||
@Component({ |
|||
selector: 'abp-sort-order-icon', |
|||
templateUrl: './sort-order-icon.component.html', |
|||
}) |
|||
export class SortOrderIconComponent implements OnInit { |
|||
@Input() |
|||
selectedKey: string; |
|||
|
|||
@Input() |
|||
key: string; |
|||
|
|||
@Input() |
|||
order: string; |
|||
|
|||
@Input() |
|||
iconClass: string; |
|||
|
|||
get icon(): string { |
|||
if (!this.selectedKey) return 'fa-sort'; |
|||
if (this.selectedKey === this.key) return `fa-sort-${this.order}`; |
|||
else return ''; |
|||
} |
|||
|
|||
constructor() {} |
|||
|
|||
ngOnInit(): void {} |
|||
} |
|||
Loading…
Reference in new issue