mirror of
https://github.com/hanzoai/jube-fork.git
synced 2026-11-02 14:29:36 +00:00
69 lines
1.8 KiB
HTML
Executable File
69 lines
1.8 KiB
HTML
Executable File
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Precision</title>
|
|
<meta charset="utf-8">
|
|
<link href="../content/shared/styles/examples-offline.css" rel="stylesheet">
|
|
<link href="../../styles/kendo.common.min.css" rel="stylesheet">
|
|
<link href="../../styles/kendo.rtl.min.css" rel="stylesheet">
|
|
<link href="../../styles/kendo.default.min.css" rel="stylesheet">
|
|
<link href="../../styles/kendo.default.mobile.min.css" rel="stylesheet">
|
|
<script src="../../js/jquery.min.js"></script>
|
|
<script src="../../js/jszip.min.js"></script>
|
|
<script src="../../js/kendo.all.min.js"></script>
|
|
<script src="../content/shared/js/console.js"></script>
|
|
<script>
|
|
|
|
</script>
|
|
|
|
|
|
</head>
|
|
<body>
|
|
|
|
<a class="offline-button" href="../index.html">Back</a>
|
|
|
|
<div id="example">
|
|
|
|
<div class="demo-section k-content">
|
|
<h4>Number rounding</h4>
|
|
<input id="round_numeric" style="width: 100%;" value="12.55" />
|
|
<span class="info-text">
|
|
(fraction is just truncated after the 2nd digit)
|
|
</span>
|
|
</div>
|
|
<br />
|
|
<div class="demo-section k-content">
|
|
<h4>Restrict decimals</h4>
|
|
<input id="restrict_numeric" style="width: 100%;" value="12.5" />
|
|
<span class="info-text">
|
|
(limit fraction length up to 2 digits)
|
|
</span>
|
|
</div>
|
|
|
|
<script>
|
|
$(document).ready(function() {
|
|
$("#round_numeric").kendoNumericTextBox({
|
|
round: false
|
|
});
|
|
|
|
$("#restrict_numeric").kendoNumericTextBox({
|
|
restrictDecimals: true
|
|
});
|
|
});
|
|
</script>
|
|
</div>
|
|
|
|
<style>
|
|
.info-text {
|
|
color: #999;
|
|
opacity: .7;
|
|
font-style: italic;
|
|
padding-left: .3em;
|
|
}
|
|
</style>
|
|
|
|
|
|
|
|
</body>
|
|
</html>
|