我是 Angular 的新手。我想在鼠标悬停时更改列标题文本。在此处附上快照输入图像描述:
下面是我的代码。
<div *ngIf="configGridParameterVersionResult != null" fxLayout="column">
<ngx-datatable [fxFlex]="configGridParameterVersionResult.gridHeight"
scrollbarV="true"
scrollbarH="true"
class="material selection-row"
[columnMode]="'force'"
[headerHeight]="50"
[footerHeight]="50"
[rowHeight]="35"
[rows]="configGridParameterVersionResult.rows"
[selectionType]="'single'"
>
<ngx-datatable-column name="Equipment" [flexGrow]="1" resizable="false">
<ng-template let-value="value" >
<span>{{value}}</span>
</ng-template>
</ngx-datatable-column>
**<ngx-datatable-column name="*PDF*" [flexGrow]="1" [width]="60" resizable="false" [cellClass]="getCellClass">
<ng-template let-value="value">
<span>{{value}}</span>
</ng-template>
</ngx-datatable-column>**