/*! * 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-strip', template: '', styles: [''], providers: [NestedOptionHost] }) export class DxiStripComponent extends CollectionNestedOption { @Input() get color(): string { return this._getOption('color'); } set color(value: string) { this._setOption('color', value); } @Input() get endValue(): Date| number| string { return this._getOption('endValue'); } set endValue(value: Date| number| string) { this._setOption('endValue', value); } @Input() get label(): any { return this._getOption('label'); } set label(value: any) { this._setOption('label', value); } @Input() get paddingLeftRight(): number { return this._getOption('paddingLeftRight'); } set paddingLeftRight(value: number) { this._setOption('paddingLeftRight', value); } @Input() get paddingTopBottom(): number { return this._getOption('paddingTopBottom'); } set paddingTopBottom(value: number) { this._setOption('paddingTopBottom', value); } @Input() get startValue(): Date| number| string { return this._getOption('startValue'); } set startValue(value: Date| number| string) { this._setOption('startValue', value); } protected get _optionPath() { return 'strips'; } constructor(@SkipSelf() @Host() parentOptionHost: NestedOptionHost, @Host() optionHost: NestedOptionHost) { super(); parentOptionHost.setNestedOption(this); optionHost.setHost(this, this._fullOptionPath.bind(this)); } } @NgModule({ declarations: [ DxiStripComponent ], exports: [ DxiStripComponent ], }) export class DxiStripModule { }