Wijmo UI for the Web
Calendar Markup and Scripting
Wijmo User Guide > Widgets > Calendar > Calendar Markup and Scripting

The HTML markup for a wijCalendar widget looks like this.

Markup
Copy Code
<div id="calendar"></div>

You can initialize the widget with the following jQuery script that sets the monthCols option to 2 so that the calendar displays two months instead of one.

Script
Copy Code
<script type="text/javascript">
    requirejs.config({
        baseUrl: "http://cdn.wijmo.com/amd-js/3.20161.90",
            paths: {
                "jquery": "jquery-1.11.1.min",
                "jquery-ui": "jquery-ui-1.11.0.custom.min",
                "jquery.ui": "jquery-ui",
                "jquery.mousewheel": "jquery.mousewheel.min",
                "globalize": "globalize.min"
            }
    });
</script>

<script id="scriptInit" type="text/javascript">
    require(["wijmo.wijcalendar"], function () {
        $(document).ready(function () {
            $("#calendar").wijcalendar({
                monthCols: 2
            });
        });
    });
</script>

The markup and script featured here results in the following live widget. Mouse over Calendar to see the animation.

See Also

Reference

KO