/*! * devextreme-angular-test * Version: 17.2.8 * Build date: Mon Feb 05 2018 * * Copyright (c) 2012 - 2018 Developer Express Inc. ALL RIGHTS RESERVED * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file in the root of the project for details. * * https://github.com/DevExpress/devextreme-angular */ /* tslint:disable:use-input-property-decorator */ import { Component, NgModule, Host, SkipSelf, ContentChildren, forwardRef, QueryList } from '@angular/core'; import { NestedOptionHost } from '../../core/nested-option'; import { DxoPopupOptions } from './base/popup-options'; import { DxiToolbarItemComponent } from './toolbar-item-dxi'; @Component({ selector: 'dxo-drop-down-options', template: '', styles: [''], providers: [NestedOptionHost], inputs: [ 'accessKey', 'animation', 'buttons', 'closeOnBackButton', 'closeOnOutsideClick', 'contentTemplate', 'deferRendering', 'disabled', 'dragEnabled', 'elementAttr', 'focusStateEnabled', 'fullScreen', 'height', 'hint', 'hoverStateEnabled', 'maxHeight', 'maxWidth', 'minHeight', 'minWidth', 'onContentReady', 'onDisposing', 'onHidden', 'onHiding', 'onInitialized', 'onOptionChanged', 'onResize', 'onResizeEnd', 'onResizeStart', 'onShowing', 'onShown', 'onTitleRendered', 'position', 'resizeEnabled', 'rtlEnabled', 'shading', 'shadingColor', 'showCloseButton', 'showTitle', 'tabIndex', 'title', 'titleTemplate', 'toolbarItems', 'visible', 'width' ] }) export class DxoDropDownOptionsComponent extends DxoPopupOptions { protected get _optionPath() { return 'dropDownOptions'; } @ContentChildren(forwardRef(() => DxiToolbarItemComponent)) get toolbarItemsChildren(): QueryList { return this._getOption('toolbarItems'); } set toolbarItemsChildren(value) { this.setChildren('toolbarItems', value); } constructor(@SkipSelf() @Host() parentOptionHost: NestedOptionHost, @Host() optionHost: NestedOptionHost) { super(); parentOptionHost.setNestedOption(this); optionHost.setHost(this, this._fullOptionPath.bind(this)); } } @NgModule({ declarations: [ DxoDropDownOptionsComponent ], exports: [ DxoDropDownOptionsComponent ], }) export class DxoDropDownOptionsModule { }