mirror of https://github.com/abpframework/abp.git
8 changed files with 18 additions and 10 deletions
@ -0,0 +1 @@ |
|||
export * from './table-sort.directive'; |
|||
@ -1,11 +1,13 @@ |
|||
import { Directive, Input, Optional, Self, SimpleChanges, OnChanges } from '@angular/core'; |
|||
import { Table } from 'primeng/table'; |
|||
import { SortPipe, SortOrder } from '../pipes/sort.pipe'; |
|||
import clone from 'just-clone'; |
|||
import { SortPipe, SortOrder } from '@abp/ng.core'; |
|||
|
|||
export interface TableSortOptions { |
|||
key: string; |
|||
order: SortOrder; |
|||
} |
|||
|
|||
@Directive({ |
|||
selector: '[abpTableSort]', |
|||
providers: [SortPipe], |
|||
@ -1,6 +1,6 @@ |
|||
import { SpectatorDirective, createDirectiveFactory } from '@ngneat/spectator/jest'; |
|||
import { TableSortDirective } from '../directives/table-sort.directive'; |
|||
import { TableModule, Table } from 'primeng/table'; |
|||
import { TableSortDirective } from '../directives/table-sort.directive'; |
|||
|
|||
describe('TableSortDirective', () => { |
|||
let spectator: SpectatorDirective<TableSortDirective>; |
|||
Loading…
Reference in new issue