/*! * 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-behavior', template: '', styles: [''], providers: [NestedOptionHost] }) export class DxoBehaviorComponent extends NestedOption { @Input() get allowSlidersSwap(): boolean { return this._getOption('allowSlidersSwap'); } set allowSlidersSwap(value: boolean) { this._setOption('allowSlidersSwap', value); } @Input() get animationEnabled(): boolean { return this._getOption('animationEnabled'); } set animationEnabled(value: boolean) { this._setOption('animationEnabled', value); } @Input() get callSelectedRangeChanged(): string { return this._getOption('callSelectedRangeChanged'); } set callSelectedRangeChanged(value: string) { this._setOption('callSelectedRangeChanged', value); } @Input() get callValueChanged(): string { return this._getOption('callValueChanged'); } set callValueChanged(value: string) { this._setOption('callValueChanged', value); } @Input() get manualRangeSelectionEnabled(): boolean { return this._getOption('manualRangeSelectionEnabled'); } set manualRangeSelectionEnabled(value: boolean) { this._setOption('manualRangeSelectionEnabled', value); } @Input() get moveSelectedRangeByClick(): boolean { return this._getOption('moveSelectedRangeByClick'); } set moveSelectedRangeByClick(value: boolean) { this._setOption('moveSelectedRangeByClick', value); } @Input() get snapToTicks(): boolean { return this._getOption('snapToTicks'); } set snapToTicks(value: boolean) { this._setOption('snapToTicks', value); } protected get _optionPath() { return 'behavior'; } constructor(@SkipSelf() @Host() parentOptionHost: NestedOptionHost, @Host() optionHost: NestedOptionHost) { super(); parentOptionHost.setNestedOption(this); optionHost.setHost(this, this._fullOptionPath.bind(this)); } } @NgModule({ declarations: [ DxoBehaviorComponent ], exports: [ DxoBehaviorComponent ], }) export class DxoBehaviorModule { }