/* 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, ViewEncapsulation, enableProdMode } from '@angular/core'; import { IntegralUIBaseService } from '../../integralui/components/integralui.core'; @Component({ selector: '', template: `

GroupBox / Tooltip

{{groupObj.text}}
{{groupObj.text}} Content

This sample shows GroupBox with a tooltip over its title.

Whenever a mouse cursor enters the group header title space, a tooltip will appear. To simplify this example, the default tooltip settings are used and only the tooltip text is set.

We are using the IntegralUI Tooltip directive to apply a tooltip to the group. This directive accepts an object with all options that determines the appearance and behavior of the tooltip.

For more information check out the source code of this sample (groupbox/groupbox-tooltip.ts) file.

Back to Main
`, providers: [IntegralUIBaseService], encapsulation: ViewEncapsulation.None }) export class GroupBoxTooltipSample { @ViewChild('application', {read: ViewContainerRef, static: false}) applicationRef: ViewContainerRef; public groupObj: any = { text: 'Group' } public tooltipSettings: any = { appRef: null, title: 'Sample Tooltip' } public ctrlStyle: any = { general: { normal: 'grbox-tt-normal' } } ngAfterViewInit(){ // Set the refernce component by which the position of tooltip is calculated // Usually, the appRef should point to the root component, to avoid position adjustment this.tooltipSettings.appRef = this.applicationRef; } }