Before executing the example study recommendations for code writing.
To create the MonthCalendar component, use HTML code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>MonthCalendar</title>
<script src="../build/PP.js" type="text/javascript"></script>
<link href="../build/PP.css" rel="stylesheet" type="text/css" />
<script src="../resources/PP.resources.ru.js" type="text/javascript"></script>
<script text="text/javascript">
function Ready() {
var MC = new PP.Ui.MonthCalendar({
ParentNode: document.getElementById("example"),
ShowTime: true
});
};
</script>
</head>
<body onload="Ready()">
<div id="example"></div>
</body>
</html>
After executing the example, the MonthCalendar component is placed on HTML page as a calendar:
See also: