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

The HTML markup for a wijevcal widget looks like this.

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

You can initialize the widget with the following jQuery script.

Script
Copy Code
<script type="text/javascript">
    requirejs.config({
        baseUrl: "http://cdn.wijmo.com/amd-js/3.20183.140",
            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.wijevcal"], function () {
        $(document).ready(function () {
            $("#eventscalendar").wijevcal();
        });
    });
</script>

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

See Also

Reference