Skip to content

Commit 368e296

Browse files
authored
Merge pull request #6041 from IgniteUI/tzhelev/grids-header-title-master
Add title attribute to column header - master
2 parents 47b61e1 + 01b9373 commit 368e296

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ All notable changes for each version of this project will be documented in this
1717
- **Behavioral Change** - Pinning columns is no longer automatically prevented when the pinning area would exceed the size of the grid.
1818

1919
## 8.2.4
20+
- `IgxGrid`, `IgxTreeGrid`, `IgxHierarchicalGrid`
21+
- The header text of the columns and the column groups now has the `title` attribute set to it in order to expose a native browser tooltip.
2022

2123
### RTL Support
2224
Most of the components in the framework now have full right-to-left (RTL) support via the newly included RTL themes.

projects/igniteui-angular/src/lib/grids/headers/grid-header-group.component.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@
2020
<span *ngIf="grid.hasMovableColumns" class="igx-grid__th-drop-indicator-right"></span>
2121
</ng-container>
2222

23-
<ng-template #defaultColumn>{{column.header}}</ng-template>
23+
<ng-template #defaultColumn>
24+
<span [attr.title]="column.header">{{column.header}}</span>
25+
</ng-template>
2426

2527
<ng-container *ngIf="!grid.hasColumnLayouts && column.columnGroup">
2628
<span *ngIf="grid.hasMovableColumns" class="igx-grid__th-drop-indicator-left"></span>

projects/igniteui-angular/src/lib/grids/headers/grid-header.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<ng-template #defaultColumn>
2-
{{ column.header || column.field }}
2+
<span [attr.title]="column.header || column.field">{{ column.header || column.field }}</span>
33
</ng-template>
44

55
<span class="igx-grid__th-title">

0 commit comments

Comments
 (0)