/*! * 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 DevExpress from 'devextreme/bundles/dx.all'; import { NestedOptionHost } from '../../core/nested-option'; import { NestedOption } from '../../core/nested-option'; @Component({ selector: 'dxo-editing', template: '', styles: [''], providers: [NestedOptionHost] }) export class DxoEditingComponent extends NestedOption { @Input() get allowAdding(): boolean { return this._getOption('allowAdding'); } set allowAdding(value: boolean) { this._setOption('allowAdding', value); } @Input() get allowDeleting(): boolean { return this._getOption('allowDeleting'); } set allowDeleting(value: boolean) { this._setOption('allowDeleting', value); } @Input() get allowUpdating(): boolean { return this._getOption('allowUpdating'); } set allowUpdating(value: boolean) { this._setOption('allowUpdating', value); } @Input() get editEnabled(): any { return this._getOption('editEnabled'); } set editEnabled(value: any) { this._setOption('editEnabled', value); } @Input() get editMode(): any { return this._getOption('editMode'); } set editMode(value: any) { this._setOption('editMode', value); } @Input() get form(): DevExpress.ui.dxFormOptions { return this._getOption('form'); } set form(value: DevExpress.ui.dxFormOptions) { this._setOption('form', value); } @Input() get insertEnabled(): any { return this._getOption('insertEnabled'); } set insertEnabled(value: any) { this._setOption('insertEnabled', value); } @Input() get mode(): string { return this._getOption('mode'); } set mode(value: string) { this._setOption('mode', value); } @Input() get popup(): DevExpress.ui.dxPopupOptions { return this._getOption('popup'); } set popup(value: DevExpress.ui.dxPopupOptions) { this._setOption('popup', value); } @Input() get removeEnabled(): any { return this._getOption('removeEnabled'); } set removeEnabled(value: any) { this._setOption('removeEnabled', value); } @Input() get texts(): any { return this._getOption('texts'); } set texts(value: any) { this._setOption('texts', value); } @Input() get allowDragging(): boolean { return this._getOption('allowDragging'); } set allowDragging(value: boolean) { this._setOption('allowDragging', value); } @Input() get allowResizing(): boolean { return this._getOption('allowResizing'); } set allowResizing(value: boolean) { this._setOption('allowResizing', value); } protected get _optionPath() { return 'editing'; } constructor(@SkipSelf() @Host() parentOptionHost: NestedOptionHost, @Host() optionHost: NestedOptionHost) { super(); parentOptionHost.setNestedOption(this); optionHost.setHost(this, this._fullOptionPath.bind(this)); } } @NgModule({ declarations: [ DxoEditingComponent ], exports: [ DxoEditingComponent ], }) export class DxoEditingModule { }