Skip to content
This repository was archived by the owner on Jun 1, 2025. It is now read-only.

Commit d32683a

Browse files
committed
chore(demo): use better representive method name
1 parent 6f1d3fd commit d32683a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/app/examples/grid-frozen.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ export class GridFrozenComponent implements OnInit, OnDestroy {
4848
// with frozen (pinned) grid, in order to see the entire row being highlighted when hovering
4949
// we need to do some extra tricks (that is because frozen grids use 2 separate div containers)
5050
// the trick is to use row selection to highlight when hovering current row and remove selection once we're not
51-
this.slickEventHandler.subscribe(this.gridObj.onMouseEnter, (event: Event) => this.highlightRow(event, true));
52-
this.slickEventHandler.subscribe(this.gridObj.onMouseLeave, (event: Event) => this.highlightRow(event, false));
51+
this.slickEventHandler.subscribe(this.gridObj.onMouseEnter, (event: Event) => this.colorizeHoveringRow(event, true));
52+
this.slickEventHandler.subscribe(this.gridObj.onMouseLeave, (event: Event) => this.colorizeHoveringRow(event, false));
5353
}
5454

55-
highlightRow(event: Event, isMouseEnter: boolean) {
55+
colorizeHoveringRow(event: Event, isMouseEnter: boolean) {
5656
const cell = this.gridObj.getCellFromEvent(event);
5757
const rows = isMouseEnter ? [cell?.row ?? 0] : [];
5858
this.gridObj.setSelectedRows(rows); // highlight current row

0 commit comments

Comments
 (0)