File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -375,6 +375,8 @@ import { I18n } from "./../i18n/i18n.module";
375375 [ibmDataGridFocus]="isDataGrid"
376376 [(columnIndex)]="columnIndex"
377377 [attr.colspan]="row.length + 2"
378+ (mouseenter)="addHoverClass($event)"
379+ (mouseleave)="removeHoverClass($event)"
378380 (click)="setExpandIndex($event)">
379381 <ng-container *ngIf="!firstExpandedTemplateInRow(row)">{{firstExpandedDataInRow(row)}}</ng-container>
380382 <ng-template
@@ -913,6 +915,14 @@ export class Table implements AfterViewInit {
913915 this . model . isEnd = false ;
914916 }
915917
918+ addHoverClass ( event ) {
919+ event . target . closest ( "tr" ) . previousElementSibling . classList . add ( "bx--expandable-row--hover-v2" ) ;
920+ }
921+
922+ removeHoverClass ( event ) {
923+ event . target . closest ( "tr" ) . previousElementSibling . classList . remove ( "bx--expandable-row--hover-v2" ) ;
924+ }
925+
916926 handleTabIndex ( ) {
917927 setTimeout ( ( ) => {
918928 const focusElementList = getFocusElementList ( this . elementRef . nativeElement , tabbableSelectorIgnoreTabIndex ) ;
You can’t perform that action at this time.
0 commit comments