/*! * 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 */ import { Component, NgModule, Host, SkipSelf, Input } from '@angular/core'; import DevExpress from 'devextreme/bundles/dx.all'; import { NestedOptionHost } from '../../core/nested-option'; import { NestedOption } from '../../core/nested-option'; @Component({ selector: 'dxo-header-filter', template: '', styles: [''], providers: [NestedOptionHost] }) export class DxoHeaderFilterComponent extends NestedOption { @Input() get allowSearch(): boolean { return this._getOption('allowSearch'); } set allowSearch(value: boolean) { this._setOption('allowSearch', value); } @Input() get dataSource(): DevExpress.data.DataSourceOptions| Function| Array { return this._getOption('dataSource'); } set dataSource(value: DevExpress.data.DataSourceOptions| Function| Array) { this._setOption('dataSource', value); } @Input() get groupInterval(): number| string { return this._getOption('groupInterval'); } set groupInterval(value: number| string) { this._setOption('groupInterval', value); } @Input() get height(): number { return this._getOption('height'); } set height(value: number) { this._setOption('height', value); } @Input() get width(): number { return this._getOption('width'); } set width(value: number) { this._setOption('width', value); } @Input() get texts(): any { return this._getOption('texts'); } set texts(value: any) { this._setOption('texts', value); } @Input() get visible(): boolean { return this._getOption('visible'); } set visible(value: boolean) { this._setOption('visible', value); } protected get _optionPath() { return 'headerFilter'; } constructor(@SkipSelf() @Host() parentOptionHost: NestedOptionHost, @Host() optionHost: NestedOptionHost) { super(); parentOptionHost.setNestedOption(this); optionHost.setHost(this, this._fullOptionPath.bind(this)); } } @NgModule({ declarations: [ DxoHeaderFilterComponent ], exports: [ DxoHeaderFilterComponent ], }) export class DxoHeaderFilterModule { }