/* 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 } from '@angular/core'; import { IntegralUITreeView } from '../../integralui/components/integralui.treeview'; @Component({ selector: '', template: `
In this sample you can see how to add a tooltip to each item in the TreeView component.
Whenever a mouse cursor enters the item label space, a tooltip will appear. To simplify this example, the default tooltip settings are used and only the tooltip title is set.
We are using the IntegralUI Tooltip directive to apply a tooltip to TreeView items. Each item has a tooltip field that accepts an object with all options that determines the appearance and behavior of the tooltip.
In our example, all tooltips are set after the initial data is set. You can attach/detach a tooltip or change its settings at any time, changes are applied automatically.
For more information check out the source code of this sample (treeview/treeview-tooltip.ts) file.