### File

`src/table/expanded-row-hover.directive.ts`

### Metadata

Selector | `[ibmExpandedRowHover]`

### Index

###### HostListeners
mouseenter mouseleave

### HostListeners

mouseenter
Arguments : `'$event'`
`mouseenter(event)`
Defined in src/table/expanded-row-hover.directive.ts:11

mouseleave
Arguments : `'$event'`
`mouseleave(event)`
Defined in src/table/expanded-row-hover.directive.ts:16

    import {
    	Directive,
    	HostListener
    } from "@angular/core";

    @Directive({
    	selector: "[ibmExpandedRowHover]"
    })
    export class ExpandedRowHover {
    	@HostListener("mouseenter", ["$event"])
    	addHoverClass(event) {
    		event.target.previousElementSibling.classList.add("bx--expandable-row--hover");
    	}

    	@HostListener("mouseleave", ["$event"])
    	removeHoverClass(event) {
    		event.target.previousElementSibling.classList.remove("bx--expandable-row--hover");
    	}
    }

# result-matching ""

# No results matching ""