/*! * 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 { CollectionNestedOption } from '../../core/nested-option'; @Component({ selector: 'dxi-view', template: '', styles: [''], providers: [NestedOptionHost] }) export class DxiViewComponent extends CollectionNestedOption { @Input() get agendaDuration(): number { return this._getOption('agendaDuration'); } set agendaDuration(value: number) { this._setOption('agendaDuration', value); } @Input() get appointmentTemplate(): any { return this._getOption('appointmentTemplate'); } set appointmentTemplate(value: any) { this._setOption('appointmentTemplate', value); } @Input() get appointmentTooltipTemplate(): any { return this._getOption('appointmentTooltipTemplate'); } set appointmentTooltipTemplate(value: any) { this._setOption('appointmentTooltipTemplate', value); } @Input() get cellDuration(): number { return this._getOption('cellDuration'); } set cellDuration(value: number) { this._setOption('cellDuration', value); } @Input() get dataCellTemplate(): any { return this._getOption('dataCellTemplate'); } set dataCellTemplate(value: any) { this._setOption('dataCellTemplate', value); } @Input() get dateCellTemplate(): any { return this._getOption('dateCellTemplate'); } set dateCellTemplate(value: any) { this._setOption('dateCellTemplate', value); } @Input() get dropDownAppointmentTemplate(): any { return this._getOption('dropDownAppointmentTemplate'); } set dropDownAppointmentTemplate(value: any) { this._setOption('dropDownAppointmentTemplate', value); } @Input() get endDayHour(): number { return this._getOption('endDayHour'); } set endDayHour(value: number) { this._setOption('endDayHour', value); } @Input() get firstDayOfWeek(): number| string { return this._getOption('firstDayOfWeek'); } set firstDayOfWeek(value: number| string) { this._setOption('firstDayOfWeek', value); } @Input() get groups(): Array { return this._getOption('groups'); } set groups(value: Array) { this._setOption('groups', value); } @Input() get intervalCount(): number { return this._getOption('intervalCount'); } set intervalCount(value: number) { this._setOption('intervalCount', value); } @Input() get maxAppointmentsPerCell(): number| string { return this._getOption('maxAppointmentsPerCell'); } set maxAppointmentsPerCell(value: number| string) { this._setOption('maxAppointmentsPerCell', value); } @Input() get name(): string { return this._getOption('name'); } set name(value: string) { this._setOption('name', value); } @Input() get resourceCellTemplate(): any { return this._getOption('resourceCellTemplate'); } set resourceCellTemplate(value: any) { this._setOption('resourceCellTemplate', value); } @Input() get startDate(): Date| number| string { return this._getOption('startDate'); } set startDate(value: Date| number| string) { this._setOption('startDate', value); } @Input() get startDayHour(): number { return this._getOption('startDayHour'); } set startDayHour(value: number) { this._setOption('startDayHour', value); } @Input() get timeCellTemplate(): any { return this._getOption('timeCellTemplate'); } set timeCellTemplate(value: any) { this._setOption('timeCellTemplate', value); } @Input() get type(): string { return this._getOption('type'); } set type(value: string) { this._setOption('type', value); } protected get _optionPath() { return 'views'; } constructor(@SkipSelf() @Host() parentOptionHost: NestedOptionHost, @Host() optionHost: NestedOptionHost) { super(); parentOptionHost.setNestedOption(this); optionHost.setHost(this, this._fullOptionPath.bind(this)); } } @NgModule({ declarations: [ DxiViewComponent ], exports: [ DxiViewComponent ], }) export class DxiViewModule { }