all files / component/tooltip/ tooltip.service.ts

100% Statements 6/6
100% Branches 0/0
100% Functions 2/2
100% Lines 4/4
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31                                                     
/*
 *  @license
 *  Copyright Hôpitaux Universitaires de Genève. All Rights Reserved.
 *
 *  Use of this source code is governed by an Apache-2.0 license that can be
 *  found in the LICENSE file at https://github.com/DSI-HUG/dejajs-components/blob/master/LICENSE
 */
 
import { ElementRef, Injectable } from '@angular/core';
import { DejaConnectionPositionPair } from '../../common/core/overlay/connection-position-pair';
 
/**
 * Service to pass some params through tooltip module
 */
@Injectable()
export class DejaTooltipService {
    /** Tooltip params */
    public params = {} as { [name: string]: ITooltipParams };
}
 
/**
 * Format of tooltip params
 */
export interface ITooltipParams {
    /** Renvoie ou définit l'élement du DOM sur lequel le conteneur déroulant devra s'aligner */
    ownerElement: ElementRef | HTMLElement;
    positions: DejaConnectionPositionPair | string;
    model: any;
}