Angular Scheduler - Customize Individual Views
To customize an individual view, specify a <dxi-view> configuration component. Assign a view type value to the views.type property to define which view is customized. Specify views[] properties to implement your changes.
The following code snippet customizes the "day" and "workWeek" views. This example groups appointments by a resource in the "workWeek" view. For more information about appointment grouping, refer to the following topic: Group Appointments by Resources.
- <dx-scheduler ... >
- <dxi-scheduler-resource
- fieldExpr="ownerId"
- [dataSource]="employees">
- </dxi-scheduler-resource>
- <dxi-scheduler-view type="day"
- [cellDuration]="60"
- timeCellTemplate="timeCellTemplate">
- </dxi-scheduler-view>
- <dxi-scheduler-view type="workWeek" [groups]="['ownerId']"></dxi-scheduler-view>
- <div *dxTemplate="let data of 'timeCellTemplate'">
- <i style="color: green">{{data.text}}</i>
- </div>
- </dx-scheduler>
To add a view without customizations, specify only the views.type property:
- <dx-scheduler ... >
- <dxi-scheduler-view type="day"></dxi-scheduler-view>
- <dxi-scheduler-view type="workWeek"></dxi-scheduler-view>
- </dx-scheduler>
Customize Individual Views Demo Increase View Duration Demo