/* 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 { IntegralUIDirection, IntegralUIPlacement } from '../../integralui/components/integralui.core'; @Component({ selector: '', template: `
IntegralUI DropDownButton is a native Angular component that represents a button with option to show a dropdown list. Using different properties you can change the direction at which the dropdown list will open.
To modify the button content, you can add other HTML elements or Angular components. For example, the button label can also have an image before it. In addition, you can customize the appearance of dropdown button and list using different CSS styles.
The following properties and events are supported:
The dropdown list is actually a Context Menu, and with it you can create multi-level lists, like it is presented in this sample for 'Item 2'.
More information is available as part of the source code of this sample, located at (dropdownbutton/dropdownbutton-overview.ts) file.