/* 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: `
This sample demonstrates the compact mode of the TreeView. This mode allows you to quickly navigate among tree hierarchy and work with thouse items that are closely related.
When compact mode is enabled, the visible tree shows only items related to the currently selected item, that is its parent(s), other siblings if collapsed and its children if expanded. Whenever a new item is selected the view can change.
To move to another item, collapse the currently selected item or select a new item. To display all root items, collapse the root item of the currently selected item.
For more information check out the source code of this sample (treeview/treeview-compact.ts) file.