/*! * 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 { NestedOptionHost } from '../../core/nested-option'; import { NestedOption } from '../../core/nested-option'; @Component({ selector: 'dxo-export', template: '', styles: [''], providers: [NestedOptionHost] }) export class DxoExportComponent extends NestedOption { @Input() get backgroundColor(): string { return this._getOption('backgroundColor'); } set backgroundColor(value: string) { this._setOption('backgroundColor', value); } @Input() get enabled(): boolean { return this._getOption('enabled'); } set enabled(value: boolean) { this._setOption('enabled', value); } @Input() get fileName(): string { return this._getOption('fileName'); } set fileName(value: string) { this._setOption('fileName', value); } @Input() get formats(): Array { return this._getOption('formats'); } set formats(value: Array) { this._setOption('formats', value); } @Input() get printingEnabled(): boolean { return this._getOption('printingEnabled'); } set printingEnabled(value: boolean) { this._setOption('printingEnabled', value); } @Input() get proxyUrl(): string { return this._getOption('proxyUrl'); } set proxyUrl(value: string) { this._setOption('proxyUrl', value); } @Input() get allowExportSelectedData(): boolean { return this._getOption('allowExportSelectedData'); } set allowExportSelectedData(value: boolean) { this._setOption('allowExportSelectedData', value); } @Input() get excelFilterEnabled(): boolean { return this._getOption('excelFilterEnabled'); } set excelFilterEnabled(value: boolean) { this._setOption('excelFilterEnabled', value); } @Input() get excelWrapTextEnabled(): boolean { return this._getOption('excelWrapTextEnabled'); } set excelWrapTextEnabled(value: boolean) { this._setOption('excelWrapTextEnabled', value); } @Input() get texts(): any { return this._getOption('texts'); } set texts(value: any) { this._setOption('texts', value); } protected get _optionPath() { return 'export'; } constructor(@SkipSelf() @Host() parentOptionHost: NestedOptionHost, @Host() optionHost: NestedOptionHost) { super(); parentOptionHost.setNestedOption(this); optionHost.setHost(this, this._fullOptionPath.bind(this)); } } @NgModule({ declarations: [ DxoExportComponent ], exports: [ DxoExportComponent ], }) export class DxoExportModule { }