Commit 484288a5 authored by Jefferyne's avatar Jefferyne

Updates 前端组件/NumericTextBox.md

Auto commit by GitBook Editor
parent f36054d1
## hslNumericTextBox ## NumericTextBox
```html ### 配置:
##### 1.[culture](http://docs.telerik.com/kendo-ui/api/javascript/ui/numerictextbox#configuration-culture)[`String`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)_\(default: "en-US"\)_
```
<!-- <!--
TODO: Add the kendo.culture.de-DE.min.js file as it is required! TODO: Add the kendo.culture.de-DE.min.js file as it is required!
Here is a sample script tag: Here is a sample script tag:
<script src="http://kendo.cdn.telerik.com/{kendo version}/js/cultures/kendo.culture.de-DE.min.js"> <script src="http://kendo.cdn.telerik.com/{kendo version}/js/cultures/kendo.culture.de-DE.min.js"></script>
</script>
For more information check this help topic:http://docs.telerik.com/kendo-ui/framework/globalization/overview For more information check this help topic:http://docs.telerik.com/kendo-ui/framework/globalization/overview
--> -->
<input id="numerictextbox"/> <input id="numerictextbox"/>
...@@ -14,5 +17,42 @@ ...@@ -14,5 +17,42 @@
</script> </script>
``` ```
##### 2.[decimals](http://docs.telerik.com/kendo-ui/api/javascript/ui/numerictextbox#configuration-decimals)[`Number`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)_\(default: null\)_
```
<input id="numerictextbox"/>
<script>
$("#numerictextbox").kendoNumericTextBox({decimals:1});
</script>
```
##### 3.[downArrowText](http://docs.telerik.com/kendo-ui/api/javascript/ui/numerictextbox#configuration-downArrowText)[`String`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)_\(default: "Decrease value"\)_
```
<input id="numerictextbox"/>
<script>
$("#numerictextbox").kendoNumericTextBox({downArrowText:"Less"});
</script>
```
##### 4.[factor](http://docs.telerik.com/kendo-ui/api/javascript/ui/numerictextbox#configuration-factor)[`Number`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)_\(default: "1"\)_
```
<input id="numerictextbox"/>
<script>
$("#numerictextbox").kendoNumericTextBox({
format:"p0",
factor:100,
min:0,
max:1,
step:0.01
});
</script>
```
### 方法:
##### 1.[destroy](http://docs.telerik.com/kendo-ui/api/javascript/ui/numerictextbox#methods-destroy)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment