From acfd9b4fb82deea45bdda3176100db6269d0ee8e Mon Sep 17 00:00:00 2001 From: Developer 02 Date: Mon, 11 Nov 2024 16:42:22 +0100 Subject: [PATCH] =?UTF-8?q?feat(base-table.component):=20Attribute=20rowSt?= =?UTF-8?q?yle=20und=20rowClass=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tables/base-table/base-table.component.html | 2 ++ .../components/tables/base-table/base-table.component.ts | 8 ++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/components/tables/base-table/base-table.component.html b/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/components/tables/base-table/base-table.component.html index 0706a7a..95fdbff 100644 --- a/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/components/tables/base-table/base-table.component.html +++ b/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/components/tables/base-table/base-table.component.html @@ -13,5 +13,7 @@ [infoPanel]="infoPanel" [titlePanel]="titlePanel" [theme]="theme" + [rowStyle] = "rowStyle" + [rowClass] = "rowClass" (selectedRows)="onSelectedRows($event)"> \ No newline at end of file diff --git a/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/components/tables/base-table/base-table.component.ts b/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/components/tables/base-table/base-table.component.ts index 328861b..eb213de 100644 --- a/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/components/tables/base-table/base-table.component.ts +++ b/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/components/tables/base-table/base-table.component.ts @@ -1,6 +1,6 @@ import { Component, Inject, Input, OnDestroy, OnInit, ViewChild, input } from '@angular/core'; import { ApiService } from '../../../services/api/user-management.api.service'; -import { GuiGridModule, GuiColumn, GuiColumnMenu, GuiSorting, GuiRowDetail, GuiPaging, GuiPagingDisplay, GuiSearching, GuiCellEdit, GuiInfoPanel, GuiTitlePanel, GuiRowSelection, GuiSelectedRow, GuiGridComponent, GuiGridApi, GuiTheme } from '@generic-ui/ngx-grid'; +import { GuiGridModule, GuiColumn, GuiColumnMenu, GuiSorting, GuiRowDetail, GuiPaging, GuiPagingDisplay, GuiSearching, GuiCellEdit, GuiInfoPanel, GuiTitlePanel, GuiRowSelection, GuiSelectedRow, GuiGridComponent, GuiGridApi, GuiTheme, GuiRowStyle, GuiRowClass } from '@generic-ui/ngx-grid'; import { Subscription } from 'rxjs/internal/Subscription'; import { ColorModeService, Theme } from '../../../services/button/color-mode.service'; import { CommonModule } from '@angular/common'; @@ -8,7 +8,7 @@ import { FormsModule } from '@angular/forms'; @Component({ standalone: true, - imports: [CommonModule, FormsModule, GuiGridModule ], + imports: [CommonModule, FormsModule, GuiGridModule], selector: 'app-base-table', templateUrl: './base-table.component.html', styleUrl: './base-table.component.css' @@ -111,6 +111,10 @@ export class BaseTableComponent> @Input() columns: Array = []; + @Input() rowStyle: GuiRowStyle = {} + + @Input() rowClass: GuiRowClass = {} + selected: boolean = false; safelyUnselectAll() { this.selected = true