/* 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 { IntegralUIIncrementMode, IntegralUISelectionMode } from '../../integralui/components/integralui.core'; import { IntegralUITreeGrid } from '../../integralui/components/integralui.treegrid'; @Component({ selector: '', template: `
An example of a TreeGrid where cells in Ratings column have a Rating component.
In above demo, you can change the rating value on the fly, by clicking on the stars in cell rating space or click-hold and moving the mouse cursor. You can also change the rating with mouse-wheel.
From right panel, you can change the Rating appearance to show stars or bricks. This is totally customizable via CSS, you can use your own image as rating value.
For more information check out the source code of this sample (treegrid/treegrid-cell-rating.ts) file.