SHARE
TWEET

Untitled

a guest Jun 16th, 2019 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. onMouseEnter Blue Container
  2. input mouseEnter
  3. input hidden
  4. onMouseEnter Blue Container
  5.      
  6. <div [ngClass]="class" #target
  7.     (mouseenter)="onMouseEnter($event)"
  8.     (mouseleave)="onMouseLeave($event)">
  9.     <input (mouseenter)="this.log('input mouseEnter')"
  10.            type="checkbox" (click)="doHide()" *ngIf="!hide"/>
  11. </div>
  12.      
  13. onMouseEnter($event) {
  14.     this.log('onMouseEnter Blue Container');
  15.     this.isHovering = true;
  16.   }
  17.  
  18.   onMouseLeave($event) {
  19.     this.log('onMouseLeave');
  20.     this.isHovering = false;
  21.   }
  22.  
  23.   hide = false;
  24.   doHide() {
  25.     this.hide = !this.hide;
  26.     if (this.hide === true) {
  27.       this.log('input hidden')
  28.     }
  29.   }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top