/* 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 { IntegralUIGrid } from '../../integralui/components/integralui.grid'; @Component({ selector: '', template: `
An example of a Grid cell with a dropdown component.
Each cell in the fourth column displays a dropdowm icon, and when clicked a list of available options will appear. By selecting any option from the list, you can change the cell value.
For a dropdown, we are using the iuiDropDown directive, which is attachable to any HTML element or Angular component. You can add custom content in dropdown window.
This is a simple dropdown component, which allows you to select only one option. Additional functionality that allows checking multiple options is available here: Grid Cell with Checked DropDown List
For more information check out the source code of this sample (grid/grid-dropdown.ts) file.