/*! * 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-state-storing', template: '', styles: [''], providers: [NestedOptionHost] }) export class DxoStateStoringComponent extends NestedOption { @Input() get customLoad(): Function { return this._getOption('customLoad'); } set customLoad(value: Function) { this._setOption('customLoad', value); } @Input() get customSave(): Function { return this._getOption('customSave'); } set customSave(value: Function) { this._setOption('customSave', value); } @Input() get enabled(): boolean { return this._getOption('enabled'); } set enabled(value: boolean) { this._setOption('enabled', value); } @Input() get savingTimeout(): number { return this._getOption('savingTimeout'); } set savingTimeout(value: number) { this._setOption('savingTimeout', value); } @Input() get storageKey(): string { return this._getOption('storageKey'); } set storageKey(value: string) { this._setOption('storageKey', value); } @Input() get type(): string { return this._getOption('type'); } set type(value: string) { this._setOption('type', value); } protected get _optionPath() { return 'stateStoring'; } constructor(@SkipSelf() @Host() parentOptionHost: NestedOptionHost, @Host() optionHost: NestedOptionHost) { super(); parentOptionHost.setNestedOption(this); optionHost.setHost(this, this._fullOptionPath.bind(this)); } } @NgModule({ declarations: [ DxoStateStoringComponent ], exports: [ DxoStateStoringComponent ], }) export class DxoStateStoringModule { }