/*! * 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-scrolling', template: '', styles: [''], providers: [NestedOptionHost] }) export class DxoScrollingComponent extends NestedOption { @Input() get mode(): string { return this._getOption('mode'); } set mode(value: string) { this._setOption('mode', value); } @Input() get preloadEnabled(): boolean { return this._getOption('preloadEnabled'); } set preloadEnabled(value: boolean) { this._setOption('preloadEnabled', value); } @Input() get scrollByContent(): boolean { return this._getOption('scrollByContent'); } set scrollByContent(value: boolean) { this._setOption('scrollByContent', value); } @Input() get scrollByThumb(): boolean { return this._getOption('scrollByThumb'); } set scrollByThumb(value: boolean) { this._setOption('scrollByThumb', value); } @Input() get showScrollbar(): string { return this._getOption('showScrollbar'); } set showScrollbar(value: string) { this._setOption('showScrollbar', value); } @Input() get useNative(): boolean| string { return this._getOption('useNative'); } set useNative(value: boolean| string) { this._setOption('useNative', value); } protected get _optionPath() { return 'scrolling'; } constructor(@SkipSelf() @Host() parentOptionHost: NestedOptionHost, @Host() optionHost: NestedOptionHost) { super(); parentOptionHost.setNestedOption(this); optionHost.setHost(this, this._fullOptionPath.bind(this)); } } @NgModule({ declarations: [ DxoScrollingComponent ], exports: [ DxoScrollingComponent ], }) export class DxoScrollingModule { }