/* 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'; import { IntegralUIEditorType, IntegralUIVisibility } from '../../integralui/components/integralui.core'; import { IntegralUIGridLines } from '../../integralui/components/integralui.base.grid'; import { IntegralUITreeGrid } from '../../integralui/components/integralui.treegrid'; @Component({ selector: '', template: `
An example where custom command buttons are displayed on right side when row is hovered.
You can add custom content to the row-hover template. When mouse is moved over the row, this content wil appear. By default the content in the row-hover template appears on the right side of the grid row. This is set in CSS as part of the iui-treegrid-block-hover class (part of the integralui.treegrid-default.css style sheet). You can modify it so that it will appear on the left side or in any other way you want. The content will always appear on top of the row cells, over the grid row.
For demonstration purposes, the template shows three command buttons for quick use. Each button has an icon and a IntegralUI Tooltip attached, which appears after initial delay set to 1 sec. You can modify the template and add any custom HTML or other Angular components, that may better suite your app.
For more information check out the source code of this sample (treegrid/treegrid-row-hover-buttons.ts) file.