/* Copyright © 2016-2019 Lidor Systems. All rights reserved. This file is part of the "IntegralUI Web" Library. The contents of this file are subject to the IntegralUI Web License, and may not be used except in compliance with the License. A copy of the License should have been installed in the product's root installation directory or it can be found at http://www.lidorsystems.com/products/web/studio/license-agreement.aspx. This SOFTWARE is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. Any infringement will be prosecuted under applicable laws. */ import { Component, ViewContainerRef, ViewChild, ViewChildren, ViewEncapsulation } from '@angular/core'; @Component({ selector: '', template: `

Tooltip / Overview

Move mouse cursor here to show a tooltip.


Enabled
Auto-Pop Delay
Initial Delay
Position
Show Marker
Title

IntegralUI Tooltip is a native Angular component that can be attached to any component or HTML element. It provides functionality that allows you to add a tooltip that will be displayed at specified position, with initial delay and will remain visible by specified amount of time.

In this example, there is a control panel where you can set different properties of Tooltip component. You can choose the initial delay before tooltip is shown, how long it will remain visible, position at which will appear and whether it is enabled or not.

The following properties are supported:

For more information check out the source code of this sample (tooltip/tooltip-overview.ts) file, or read the following article:

Overview of IntegralUI Tooltip for Angular

`, encapsulation: ViewEncapsulation.None }) export class TooltipOverviewSample { @ViewChild('application', {read: ViewContainerRef, static: false}) applicationRef: ViewContainerRef; public tooltipPositions: any = [ 'mouse', 'above', 'below', 'left', 'right' ]; public tooltipSettings: any = { appRef: null, autoPopDelay: 3000, enabled: true, initialDelay: 1000, position: 'mouse', showMarker: true, title: 'Tooltip Title' } constructor(){} ngAfterViewInit(){ this.tooltipSettings.appRef = this.applicationRef; } updateEnabled(){ this.tooltipSettings.enabled = !this.tooltipSettings.enabled; } updateShowMarker(){ this.tooltipSettings.showMarker = !this.tooltipSettings.showMarker; } }