-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadmins-page-ts.content.ts
More file actions
35 lines (34 loc) · 1.06 KB
/
admins-page-ts.content.ts
File metadata and controls
35 lines (34 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// eslint-disable-next-line jsdoc/require-jsdoc
export const adminsPageTsContent: string = `import { CommonModule } from '@angular/common';
import { Component } from '@angular/core';
import { NgxMatEntityTableComponent, TableData } from 'ngx-material-entity';
import { Admin } from '../../models/admin.model';
import { AdminService } from '../../services/entities/admin.service';
@Component({
selector: 'app-admins',
templateUrl: './admins.component.html',
standalone: true,
imports: [
CommonModule,
NgxMatEntityTableComponent
]
})
export class AdminsComponent {
tableConfig: TableData<Admin> = {
baseData: {
title: 'Admins',
displayColumns: [
{
displayName: 'Name',
value: admin => admin.name
},
{
displayName: 'E-Mail',
value: admin => admin.email
}
],
EntityServiceClass: AdminService,
EntityClass: Admin
}
};
}`;