JavaScript/jQuery Calendar - Specify Zoom Level
To specify which calendar view (month, year, decade or century) should be displayed at first, set the zoomLevel property.
JavaScript
- $(function() {
- $("#calendarContainer").dxCalendar({
- zoomLevel: 'year'
- });
- });
To make certain calendar views inaccessible, specify the maxZoomLevel and minZoomLevel properties. For example, the following code enables the month, year and decade calendar views leaving the century view behind.
JavaScript
- $(function() {
- $("#calendarContainer").dxCalendar({
- minZoomLevel: 'decade',
- maxZoomLevel: 'month'
- });
- });
See Also
Feel free to share topic-related thoughts here.
If you have technical questions, please create a support ticket in the DevExpress Support Center.
Thank you for the feedback!
If you have technical questions, please create a support ticket in the DevExpress Support Center.