Added Shift update

This commit is contained in:
Mosiur Rahman
2024-11-24 18:56:51 +06:00
parent f08750a116
commit 8070465cf0
18 changed files with 299 additions and 27 deletions

View File

@@ -0,0 +1,32 @@
import { CommonModule } from '@angular/common';
import { Component, Input } from '@angular/core';
import { Update } from '../../model/update.model';
import { ShortenPipe } from '../../pipe/shorten.pipe';
interface RowData {
[key: string]: string;
}
@Component({
selector: 'app-table',
standalone: true,
imports: [CommonModule, ShortenPipe],
templateUrl: './table.component.html',
styleUrl: './table.component.scss',
})
export class TableComponent {
@Input()
@Input() tableHeaders: string[] = ['demo1','demo2','demo3']
@Input() rowDataList!: any[];
expandRowIndex: number | null = null;
toggleRow(index: number){
this.expandRowIndex = this.expandRowIndex === index ? null : index;
}
getRowNumber(index: number): number {
return this.expandRowIndex === index ? 15000 : 75;
}
}