projects/rebirth-ng/src/lib/tooltip/tooltip-popup.component.ts
| host | { | 
            
| selector | re-tooltip-popup | 
            
| styleUrls | tooltip-popup.component.scss | 
            
| templateUrl | ./tooltip-popup.component.html | 
            
                        Properties | 
                
                        
  | 
                
                        Methods | 
                
                        Inputs | 
                
                        HostListeners | 
                
constructor(elementRef: ElementRef, renderer: Renderer2, changeDetectorRef: ChangeDetectorRef)
                     | 
                ||||||||||||
| 
                             
                                    Parameters :
                                     
                    
  | 
                
                        
                        content
                     | 
                    
                             
                            Type:      | 
                
| 
                                     Inherited from      
                                TooltipPopup
 | 
                            |
| 
                                     Defined in TooltipPopup:8 
                             | 
                        |
                        
                        context
                     | 
                    
                             
                            Type:      | 
                
| 
                                     Inherited from      
                                TooltipPopup
 | 
                            |
| 
                                     Defined in TooltipPopup:9 
                             | 
                        |
                        
                        cssClass
                     | 
                    
                             
                            Type:      | 
                
| 
                                     Inherited from      
                                TooltipPopup
 | 
                            |
| 
                                     Defined in TooltipPopup:10 
                             | 
                        |
                        
                        placement
                     | 
                    
                             
                            Type:     
                            Default value:   | 
                
| 
                                     Inherited from      
                                TooltipPopup
 | 
                            |
| 
                                     Defined in TooltipPopup:7 
                             | 
                        |
| click | 
                            Arguments : '$event' 
                         | 
                    
click($event: Event)
                     | 
                
| 
                                     Inherited from      
                                TooltipPopup
 | 
                            
| 
                                     Defined in TooltipPopup:18 
                             | 
                        
| afterVisibilityAnimation | ||||||
afterVisibilityAnimation(e: AnimationEvent)
                     | 
                ||||||
| 
                                     Inherited from      
                                TooltipPopup
 | 
                            ||||||
| 
                                     Defined in TooltipPopup:45 
                             | 
                        ||||||
| 
                             
                                    Parameters :
                                     
                            
 
                                Returns :      
                                void
                             | 
                
| hide | 
hide()
                     | 
                
| 
                                     Inherited from      
                                TooltipPopup
 | 
                            
| 
                                     Defined in TooltipPopup:35 
                             | 
                        
| 
                             
                                Returns :      
                    void
                             | 
                
| isTemplateRef | ||||
isTemplateRef(obj: )
                     | 
                ||||
| 
                                     Inherited from      
                                TooltipPopup
 | 
                            ||||
| 
                                     Defined in TooltipPopup:52 
                             | 
                        ||||
| 
                             
                                    Parameters :
                                     
                            
 
                                Returns :      
                                boolean
                             | 
                
| show | 
show()
                     | 
                
| 
                                     Inherited from      
                                TooltipPopup
 | 
                            
| 
                                     Defined in TooltipPopup:22 
                             | 
                        
| 
                             
                                Returns :      
                    void
                             | 
                
| Static ACTIVE_CLASS | 
                        ACTIVE_CLASS:     
                     | 
                
                            Type :     string
                         | 
                    
                            Default value : 'in'
                         | 
                    
| 
                                     Inherited from      
                                TooltipPopup
 | 
                            
| 
                                     Defined in TooltipPopup:6 
                             | 
                        
| animateState | 
                        animateState:     
                     | 
                
                            Type :     string
                         | 
                    
                            Default value : 'initial'
                         | 
                    
| 
                                     Inherited from      
                                TooltipPopup
 | 
                            
| 
                                     Defined in TooltipPopup:12 
                             | 
                        
| isOpen | 
                        isOpen:     
                     | 
                
                            Type :     boolean
                         | 
                    
| 
                                     Inherited from      
                                TooltipPopup
 | 
                            
| 
                                     Defined in TooltipPopup:11 
                             | 
                        
import { Component, ElementRef, Renderer2, ChangeDetectorRef } from '@angular/core';
import { TooltipPopup } from './tooltip-popup';
import { trigger, state, style, animate, transition } from '@angular/animations';
@Component({
  selector: 're-tooltip-popup',
  templateUrl: './tooltip-popup.component.html',
  styleUrls: ['./tooltip-popup.component.scss'],
  host: {
    '[class]': '"tooltip fade  " + placement',
    '[style.display]': '"none"',
    'role': 'tooltip',
    '[@state]': 'animateState',
    '(@state.done)': 'afterVisibilityAnimation($event)'
  },
  animations: [
    trigger('state', [
      state('void', style({ transform: 'scale(0)' })),
      state('initial', style({ transform: 'scale(0)' })),
      state('visible', style({ transform: 'scale(1)' })),
      state('hidden', style({ transform: 'scale(0)' })),
      transition('* => visible', animate('150ms cubic-bezier(0.0, 0.0, 0.2, 1)')),
      transition('* => hidden', animate('150ms cubic-bezier(0.4, 0.0, 1, 1)')),
    ])
  ],
})
export class TooltipPopupComponent extends TooltipPopup {
  constructor(elementRef: ElementRef, renderer: Renderer2, changeDetectorRef: ChangeDetectorRef) {
    super(elementRef, renderer, changeDetectorRef);
  }
}
    <div class="tooltip-arrow"></div>
<div class="tooltip-inner" *ngIf="content">
  <span *ngIf="!isTemplateRef(content)" [innerHTML]="content"></span>
  <ng-template *ngIf="isTemplateRef(content)" [ngTemplateOutlet]="content"
               [ngTemplateOutletContext]="{ $implicit: context }"></ng-template>
</div>