diff options
Diffstat (limited to 'demos/calendar/other-months.html')
-rw-r--r-- | demos/calendar/other-months.html | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/demos/calendar/other-months.html b/demos/calendar/other-months.html new file mode 100644 index 000000000..2fb4dacf8 --- /dev/null +++ b/demos/calendar/other-months.html @@ -0,0 +1,31 @@ +<!doctype html> +<html lang="en"> +<head> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>jQuery UI Calendar - Dates in other months</title> + <link rel="stylesheet" href="../../themes/base/all.css"> + <link rel="stylesheet" href="../demos.css"> + <script src="../../external/requirejs/require.js"></script> + <script src="../bootstrap.js"> + $( "#calendar" ).calendar({ + eachDay: function( day ) { + if ( day.lead ) { + day.render = true; + day.selectable = true; + day.extraClasses = "ui-priority-secondary"; + } + } + }); + </script> +</head> +<body> + +<div id="calendar"></div> + +<div class="demo-description"> +<p>The calendar can show dates that come from other than the main month + being displayed. These other dates can also be made selectable.</p> +</div> +</body> +</html> |