Widgets > wijdatepager > Set the View Type |
The wijdatepager widget supports several view types: day, week, month. Simply set the viewType option to take advantage of this feature.
Complete the following steps to set the view type:
<body>
tags of the page, just after @RenderBody():<div id="datepager"></div>
This markup will add content for a datepager widget to the page. In the next step, you'll initialize the datepager.
<script type="text/javascript">
$("#datepager").wijdatepager({ viewType: "month" });
</script>
At run time the datepager will appear with the month view type.
What You've Accomplished
Press F5 to run the application, and notice that the datepager appears with the month view type.