115 строки
4.3 KiB
HTML
115 строки
4.3 KiB
HTML
<!doctype html>
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<title>Essential JS 1 : DateTimepicker keyboard navigation</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" charset="utf-8" />
|
|
<link href="../content/bootstrap.min.css" rel="stylesheet">
|
|
<link href="../content/ejthemes/default-theme/ej.web.all.min.css" rel="stylesheet" />
|
|
<link href="../content/default.css" rel="stylesheet" />
|
|
<link href="../content/default-responsive.css" rel="stylesheet" />
|
|
<!--[if lt IE 9]>
|
|
<script src="../scripts/jquery-1.11.3.min.js" type="text/javascript"></script>
|
|
<![endif]-->
|
|
<!--[if gte IE 9]><!-->
|
|
<script src="../scripts/jquery-3.4.1.min.js" type="text/javascript"></script>
|
|
<!--<![endif]-->
|
|
<script src="../scripts/ej.web.all.min.js" type="text/javascript"></script>
|
|
<script src="../scripts/properties.js" type="text/javascript"></script>
|
|
</head>
|
|
<body>
|
|
<div class="content-container-fluid">
|
|
<div class="row">
|
|
<div class="cols-sample-area">
|
|
<div class="frame">
|
|
<div class="control">
|
|
<input type="text" id="dateTime" accesskey="j" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="sampleProperties">
|
|
<div class="prop-grid keyboard">
|
|
<div class="row">
|
|
<div class="col-md-3">
|
|
<a href="http://en.wikipedia.org/wiki/Access_key" target="_blank">Access key</a> + j
|
|
</div>
|
|
<div class="col-md-3">
|
|
Focuses the control
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-3">
|
|
Alt + Down
|
|
</div>
|
|
<div class="col-md-3">
|
|
Opens/Hides the popup
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-3">
|
|
After popup opened:
|
|
</div>
|
|
</div>
|
|
<br />
|
|
<div class="row">
|
|
<div class="col-md-3">
|
|
Alt + Left
|
|
</div>
|
|
<div class="col-md-3">
|
|
Focus through out the popup container in forward direction
|
|
</div>
|
|
<div class="col-md-3"></div>
|
|
</div>
|
|
<br />
|
|
<div class="row">
|
|
<div class="col-md-3">
|
|
Alt + Right
|
|
</div>
|
|
<div class="col-md-3">
|
|
Focus through out the popup container in backward direction
|
|
</div>
|
|
<div class="col-md-3"></div>
|
|
</div>
|
|
<br />
|
|
<div class="row">
|
|
<div class="col-md-3">
|
|
Enter
|
|
</div>
|
|
<div class="col-md-3">
|
|
select the focused control/selects the focused element
|
|
</div>
|
|
<div class="col-md-3"></div>
|
|
</div>
|
|
<br />
|
|
<div class="row">
|
|
<div class="col-md-3">
|
|
Esc
|
|
</div>
|
|
<div class="col-md-3">
|
|
Closes the popup
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
$(function () {
|
|
$('#dateTime').ejDateTimePicker({ width: '100%', value: new Date() });
|
|
|
|
$("#sampleProperties").ejPropertiesPanel();
|
|
});
|
|
</script>
|
|
<style type="text/css" class="cssStyles">
|
|
|
|
.e-datetime-popup .e-focus {
|
|
box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
|
|
}
|
|
|
|
.darktheme .e-datetime-popup .e-focus {
|
|
box-shadow: 0 0 2px rgba(255, 255, 255, 0.5);
|
|
}
|
|
</style>
|
|
</body>
|
|
</html>
|