/* 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 { IntegralUITreeGrid } from '../../integralui/components/integralui.treegrid'; import { IntegralUISelectionMode } from '../../integralui/components/integralui.core'; import { IntegralUIListBox } from '../../integralui/components/integralui.listbox'; @Component({ selector: '', template: `
A demonstration of different selection types available in TreeGrid component. By selecting an option from ComboBox above, you can change the current selected mode. There are four acceptable values:
In multi-selection mode, rows can become selected using the CTRL key or SHIFT key. The MultiExtended mode allows selection of multiple rows in wide range. While SHIFT key is pressed, all rows from first to last clicked item will become selected.
List on the right, shows which rows are currently selected. To retrieve this list, you can use the getList method with key value 'selected'.
For more information check out the source code of this sample (treegrid/treegrid-multi-select.ts) file.