added skeleton loading for projects data table
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
context: { $implicit: row }
|
||||
"></ng-container>
|
||||
} @else if (col.type === 'accessor') {
|
||||
{{ row[col.accessorKey] }}
|
||||
<span>{{ row[col.accessorKey] }}</span>
|
||||
}
|
||||
</td>
|
||||
</ng-container>
|
||||
|
||||
@@ -20,7 +20,7 @@ import {
|
||||
} from '@angular/material/sort';
|
||||
import { MatTableDataSource, MatTableModule } from '@angular/material/table';
|
||||
import { ActivatedRoute, Router } from '@angular/router';
|
||||
|
||||
import { SkTextDirective } from '../../../custom-directives/sk-text.directive';
|
||||
export interface BaseColumn<T> {
|
||||
id: string;
|
||||
header: string;
|
||||
@@ -43,7 +43,7 @@ export type GenericColumn<T> = AccessorColumn<T> | DisplayColumn<T>;
|
||||
@Component({
|
||||
selector: 'app-data-table',
|
||||
standalone: true,
|
||||
imports: [MatTableModule, NgTemplateOutlet, MatSortModule],
|
||||
imports: [MatTableModule, NgTemplateOutlet, MatSortModule, SkTextDirective],
|
||||
templateUrl: './data-table.component.html',
|
||||
styleUrl: './data-table.component.scss',
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user