Wijmo 5 - Date and Time Input
HTML
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdn.grapecity.com/wijmo/5.latest/styles/wijmo.min.css">
<script src="https://cdn.grapecity.com/wijmo/5.latest/controls/wijmo.min.js"></script>
<script src="https://cdn.grapecity.com/wijmo/5.latest/controls/wijmo.input.min.js"></script>
<div class="container">
<div id="theInputDate"></div>
</div>
CSS
.wj-calendar {
max-width: 300px;
}
.wj-control {
margin-bottom: 6px;
}
body {
margin-bottom: 24pt;
}
JavaScript
onload = function() {
// the date/time being edited
var theDate = new Date();
// create InputDate control
var inputDate = new wijmo.input.InputDate('#theInputDate', {
min: new Date(2014, 8, 1),
format: 'M/d/yyyy',
value: theDate
});
console.log(inputDate.calendar)
inputDate.calendar.hostElement.addEventListener("click",function(e){
if(wijmo.hasClass(e.target,'wj-state-selected')){
inputDate.isDroppedDown=false;
}
},true);
}