/*! * 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-width', template: '', styles: [''], providers: [NestedOptionHost] }) export class DxoWidthComponent extends NestedOption { @Input() get rangeMaxPoint(): number { return this._getOption('rangeMaxPoint'); } set rangeMaxPoint(value: number) { this._setOption('rangeMaxPoint', value); } @Input() get rangeMinPoint(): number { return this._getOption('rangeMinPoint'); } set rangeMinPoint(value: number) { this._setOption('rangeMinPoint', value); } @Input() get end(): number { return this._getOption('end'); } set end(value: number) { this._setOption('end', value); } @Input() get start(): number { return this._getOption('start'); } set start(value: number) { this._setOption('start', value); } @Input() get left(): number { return this._getOption('left'); } set left(value: number) { this._setOption('left', value); } @Input() get right(): number { return this._getOption('right'); } set right(value: number) { this._setOption('right', value); } protected get _optionPath() { return 'width'; } constructor(@SkipSelf() @Host() parentOptionHost: NestedOptionHost, @Host() optionHost: NestedOptionHost) { super(); parentOptionHost.setNestedOption(this); optionHost.setHost(this, this._fullOptionPath.bind(this)); } } @NgModule({ declarations: [ DxoWidthComponent ], exports: [ DxoWidthComponent ], }) export class DxoWidthModule { }