/*! * 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-pager', template: '', styles: [''], providers: [NestedOptionHost] }) export class DxoPagerComponent extends NestedOption { @Input() get allowedPageSizes(): string| Array { return this._getOption('allowedPageSizes'); } set allowedPageSizes(value: string| Array) { this._setOption('allowedPageSizes', value); } @Input() get infoText(): string { return this._getOption('infoText'); } set infoText(value: string) { this._setOption('infoText', value); } @Input() get showInfo(): boolean { return this._getOption('showInfo'); } set showInfo(value: boolean) { this._setOption('showInfo', value); } @Input() get showNavigationButtons(): boolean { return this._getOption('showNavigationButtons'); } set showNavigationButtons(value: boolean) { this._setOption('showNavigationButtons', value); } @Input() get showPageSizeSelector(): boolean { return this._getOption('showPageSizeSelector'); } set showPageSizeSelector(value: boolean) { this._setOption('showPageSizeSelector', value); } @Input() get visible(): boolean| string { return this._getOption('visible'); } set visible(value: boolean| string) { this._setOption('visible', value); } protected get _optionPath() { return 'pager'; } constructor(@SkipSelf() @Host() parentOptionHost: NestedOptionHost, @Host() optionHost: NestedOptionHost) { super(); parentOptionHost.setNestedOption(this); optionHost.setHost(this, this._fullOptionPath.bind(this)); } } @NgModule({ declarations: [ DxoPagerComponent ], exports: [ DxoPagerComponent ], }) export class DxoPagerModule { }