jqwidgets-framework
Version:
jQWidgets is an advanced Angular, Vue, Blazor, React, Web Components, jquery, ASP .NET MVC, Custom Elements and HTML5 UI framework.
54 lines (49 loc) • 3.35 kB
HTML
<html lang="en">
<head>
<meta name="keywords" content="jQuery Calendar, Month Calendar, MonthCalendar, DateTimeInput, DateTimePicker, Date Picker" />
<meta name="description" content="In this demo is demonstrated how to add special dates to the jqxCalendar widget. You can add any special date to the jqxCalendar by using the
addSpecialDate method. When you invoke the method, you need to pass three parameters to it - Date object( the special date ), class (optional parameter which represents the css class name) and tooltip (optional parameter
which displayes additional information about the special date when the user hovers it)." />
<title id='Description'>
In this demo is demonstrated how to add special dates to the jqxCalendar widget. You can add any special date to the jqxCalendar by using the
addSpecialDate method. When you invoke the method, you need to pass three parameters to it - Date object( the special date ), class (optional parameter which represents the css class name) and tooltip (optional parameter
which displayes additional information about the special date when the user hovers it).
</title>
<link rel="stylesheet" href="../../../jqwidgets/styles/jqx.base.css" type="text/css" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" />
<script type="text/javascript" src="../../../scripts/jquery-1.12.4.min.js"></script>
<script type="text/javascript" src="../../../jqwidgets/jqxcore.js"></script>
<script type="text/javascript" src="../../../jqwidgets/jqxdatetimeinput.js"></script>
<script type="text/javascript" src="../../../jqwidgets/jqxcalendar.js"></script>
<script type="text/javascript" src="../../../jqwidgets/jqxtooltip.js"></script>
<script type="text/javascript" src="../../../jqwidgets/globalization/globalize.js"></script>
<script type="text/javascript" src="../../../scripts/demos.js"></script>
</head>
<body>
<div id='content'>
<script type="text/javascript">
$(document).ready(function () {
// Create calendar.
$("#jqxWidget").jqxCalendar({ enableTooltips: true, width: 220, height: 220 });
// Create Date objects.
var date1 = new Date();
var date2 = new Date();
var date3 = new Date();
date1.setDate(5);
date2.setDate(15);
date3.setDate(16);
// Add special dates by invoking the addSpecialDate method.
$("#jqxWidget").jqxCalendar('addSpecialDate', date1, '', 'Special Date1');
$("#jqxWidget").jqxCalendar('addSpecialDate', date2, '', 'Special Date2');
$("#jqxWidget").jqxCalendar('addSpecialDate', date3, '', 'Special Date3');
});
</script>
<div id='jqxWidget'></div>
</div>
<div style="position: absolute; bottom: 5px; right: 5px;">
<a href="https://www.jqwidgets.com/" alt="https://www.jqwidgets.com/"><img alt="https://www.jqwidgets.com/" title="https://www.jqwidgets.com/" src="https://www.jqwidgets.com/wp-content/design/i/logo-jqwidgets.png"/></a>
</div>
</body>
</html>