/*! * 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-value-error-bar', template: '', styles: [''], providers: [NestedOptionHost] }) export class DxoValueErrorBarComponent extends NestedOption { @Input() get color(): string { return this._getOption('color'); } set color(value: string) { this._setOption('color', value); } @Input() get displayMode(): string { return this._getOption('displayMode'); } set displayMode(value: string) { this._setOption('displayMode', value); } @Input() get edgeLength(): number { return this._getOption('edgeLength'); } set edgeLength(value: number) { this._setOption('edgeLength', value); } @Input() get highValueField(): string { return this._getOption('highValueField'); } set highValueField(value: string) { this._setOption('highValueField', value); } @Input() get lineWidth(): number { return this._getOption('lineWidth'); } set lineWidth(value: number) { this._setOption('lineWidth', value); } @Input() get lowValueField(): string { return this._getOption('lowValueField'); } set lowValueField(value: string) { this._setOption('lowValueField', value); } @Input() get opacity(): number { return this._getOption('opacity'); } set opacity(value: number) { this._setOption('opacity', value); } @Input() get type(): string { return this._getOption('type'); } set type(value: string) { this._setOption('type', value); } @Input() get value(): number { return this._getOption('value'); } set value(value: number) { this._setOption('value', value); } protected get _optionPath() { return 'valueErrorBar'; } constructor(@SkipSelf() @Host() parentOptionHost: NestedOptionHost, @Host() optionHost: NestedOptionHost) { super(); parentOptionHost.setNestedOption(this); optionHost.setHost(this, this._fullOptionPath.bind(this)); } } @NgModule({ declarations: [ DxoValueErrorBarComponent ], exports: [ DxoValueErrorBarComponent ], }) export class DxoValueErrorBarModule { }