Skip to content

Commit 9245798

Browse files
authored
Merge pull request #7789 from IgniteUI/ddincheva/cellTooltip
Add tooltip to the grid data cell and summary cell
2 parents 6e5d52b + e164752 commit 9245798

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ All notable changes for each version of this project will be documented in this
2323
### New Features
2424
- `IgxGrid`, `IgxTreeGrid`, `IgxHierarchicalGrid`
2525
- Introduced `showSummaryOnCollapse` grid property which allows you to control whether the summary row stays visible when the groupBy / parent row is collapsed.
26+
- Added support for tooltips on data cells default template and summary cells.
2627
- `IgxGridState` directive
2728
- Added support for expansion states, column selection and row pinning.
2829
- Added support for `IgxTreeGrid` and `IgxHierarchicalGrid` (including child grids)

projects/igniteui-angular/src/lib/core/styles/components/grid-summary/_grid-summary-theme.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@
123123

124124
&::after {
125125
position: absolute;
126-
content: '';
127126
top: 0;
128127
bottom: 0;
129128
left: 0;

projects/igniteui-angular/src/lib/grids/cell.component.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,11 @@ export class IgxGridCellComponent implements OnInit, OnChanges, OnDestroy {
285285
return `${this.row.gridID}_${this.rowIndex}_${ this.visibleColumnIndex}`;
286286
}
287287

288+
@HostBinding('attr.title')
289+
public get title() {
290+
return this.editMode || this.cellTemplate ? '' : this.value;
291+
}
292+
288293
/**
289294
* Returns a reference to the nativeElement of the cell.
290295
* ```typescript

projects/igniteui-angular/src/lib/grids/summaries/summary-cell.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
</div>
1111
</ng-container>
1212

13-
<span class="igx-grid-summary__label" title="{{ summary.label }}">{{ translateSummary(summary) }}</span>
14-
<span class="igx-grid-summary__result" title="{{ summary.summaryResult }}">
13+
<span class="igx-grid-summary__label" [attr.title]="summary.label">{{ translateSummary(summary) }}</span>
14+
<span class="igx-grid-summary__result" [attr.title]="summary.summaryResult">
1515
{{ columnDatatype === 'number' ? (summary.summaryResult | igxdecimal: grid.locale) : columnDatatype === 'date' ? (summary.summaryResult | igxdate: grid.locale) : (summary.summaryResult) }}
1616
</span>
1717
</div>

0 commit comments

Comments
 (0)