small improvements:
- add colorview component - improve generic action column - improve generic table - improve event-type-table.component.ts - add headerText to admin layout
This commit is contained in:
@@ -8,11 +8,12 @@ import { DomSanitizer } from '@angular/platform-browser';
|
||||
import { GenericTableConfig } from './generic-table.config';
|
||||
import { startWith, switchMap } from 'rxjs/operators';
|
||||
import { GenericTableSearchForm } from './generic-table-search-form/generic-table-search-form';
|
||||
import { SafeHtmlPipe } from '../../pipes/safe-html-pipe';
|
||||
|
||||
@Component({
|
||||
selector: 'app-generic-table',
|
||||
templateUrl: './generic-table.html',
|
||||
imports: [NgClass, AsyncPipe, NgComponentOutlet, GenericTableSearchForm],
|
||||
imports: [NgClass, AsyncPipe, NgComponentOutlet, GenericTableSearchForm, SafeHtmlPipe],
|
||||
standalone: true,
|
||||
})
|
||||
export class GenericTable<T> implements OnInit {
|
||||
@@ -68,7 +69,7 @@ export class GenericTable<T> implements OnInit {
|
||||
if (cell.componentInputs) {
|
||||
return cell.componentInputs(item);
|
||||
}
|
||||
return { data: item }; // Default input
|
||||
return { item }; // Default input
|
||||
}
|
||||
|
||||
getAsHtml(str: string) {
|
||||
|
||||
Reference in New Issue
Block a user