/*! * 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 { CollectionNestedOption } from '../../core/nested-option'; @Component({ selector: 'dxi-pane', template: '', styles: [''], providers: [NestedOptionHost] }) export class DxiPaneComponent extends CollectionNestedOption { @Input() get backgroundColor(): string { return this._getOption('backgroundColor'); } set backgroundColor(value: string) { this._setOption('backgroundColor', value); } @Input() get border(): any { return this._getOption('border'); } set border(value: any) { this._setOption('border', value); } @Input() get name(): string { return this._getOption('name'); } set name(value: string) { this._setOption('name', value); } protected get _optionPath() { return 'panes'; } constructor(@SkipSelf() @Host() parentOptionHost: NestedOptionHost, @Host() optionHost: NestedOptionHost) { super(); parentOptionHost.setNestedOption(this); optionHost.setHost(this, this._fullOptionPath.bind(this)); } } @NgModule({ declarations: [ DxiPaneComponent ], exports: [ DxiPaneComponent ], }) export class DxiPaneModule { }