mirror of
https://github.com/hanzoai/jube-fork.git
synced 2026-11-02 14:29:36 +00:00
126 lines
4.0 KiB
HTML
Executable File
126 lines
4.0 KiB
HTML
Executable File
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Basic usage</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 id="add-product" class="demo-section k-content">
|
|
<p class="title">Add new product</p>
|
|
<ul id="fieldlist">
|
|
<li>
|
|
<label>
|
|
Price:
|
|
<input id="currency" type="number" title="currency" value="30" min="0" max="100" style="width: 100%;" />
|
|
</label>
|
|
</li>
|
|
<li>
|
|
<label>
|
|
Price Discount:
|
|
<input id="percentage" value="0.05" title="percentage" style="width: 100%;" />
|
|
</label>
|
|
</li>
|
|
<li>
|
|
<label>
|
|
Weight:
|
|
<input id="custom" value="2" title="custom" style="width: 100%;" />
|
|
</label>
|
|
</li>
|
|
<li>
|
|
<label>
|
|
Currently in stock:
|
|
<input id="numeric" type="number" title="numeric" value="17" min="0" max="100" step="1" style="width: 100%;" />
|
|
</label>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
|
|
|
|
<script>
|
|
$(document).ready(function() {
|
|
// create NumericTextBox from input HTML element
|
|
$("#numeric").kendoNumericTextBox();
|
|
|
|
// create Curerncy NumericTextBox from input HTML element
|
|
$("#currency").kendoNumericTextBox({
|
|
format: "c",
|
|
decimals: 3
|
|
});
|
|
|
|
// create Percentage NumericTextBox from input HTML element
|
|
$("#percentage").kendoNumericTextBox({
|
|
format: "p0",
|
|
min: 0,
|
|
max: 0.1,
|
|
step: 0.01
|
|
});
|
|
|
|
// create NumericTextBox from input HTML element using custom format
|
|
$("#custom").kendoNumericTextBox({
|
|
format: "#.00 kg"
|
|
});
|
|
});
|
|
</script>
|
|
|
|
<style>
|
|
.demo-section {
|
|
padding: 0;
|
|
}
|
|
|
|
#add-product .title {
|
|
font-size: 16px;
|
|
color: #fff;
|
|
background-color: #1e88e5;
|
|
padding: 20px 30px;
|
|
margin: 0;
|
|
}
|
|
|
|
#fieldlist {
|
|
margin: 0 0 -1.5em;
|
|
padding: 30px;
|
|
}
|
|
|
|
#fieldlist li {
|
|
list-style: none;
|
|
padding-bottom: 1.5em;
|
|
}
|
|
|
|
#fieldlist label {
|
|
display: block;
|
|
padding-bottom: .6em;
|
|
font-weight: bold;
|
|
text-transform: uppercase;
|
|
font-size: 12px;
|
|
}
|
|
|
|
#fieldlist label .k-numerictextbox {
|
|
font-size: 14px;
|
|
}
|
|
</style>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</body>
|
|
</html>
|