view

Called without any parameters, the view() method returns the current selected view of the Calendar. The returned result can be "month", "year", "decade" or "century".
Calling it with a string parameter which is the name of the view the calendar changes it depth and renders corresponding view.


<div id="calendar" ></div>

<script type="text/javascript">
    $(function () {
        $("#calendar").shieldCalendar({
        });
    });

    $("#calendar").swidget().view(); // return "month"

    $("#calendar").swidget().view("year"); // renders year view

</script>