The HTML markup for a wijdatepager widget looks like this.
Markup |
Copy Code |
---|---|
<div id="datepager" style="margin-top:20px"></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.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", "bootstrap": "bootstrap.min", //Needed if you use Bootstrap. "knockout": "knockout-3.1.0" //Needed if you use Knockout. } }); </script> <script id="scriptInit" type="text/javascript"> require(["globalize.cultures", "wijmo.wijdatepager"], function () { $(document).ready(function () { $("#datepager").wijdatepager({}); }); }); </script> |
The markup and script featured here results in the following live widget. Mouse over DatePager to see the animation.