Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hel-developer-guide
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hel-guide
hel-developer-guide
Commits
2a4adfcf
Commit
2a4adfcf
authored
Jul 31, 2017
by
Jefferyne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updates 前端组件/NumericTextBox.md
Auto commit by GitBook Editor
parent
e34d1fb8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
NumericTextBox.md
前端组件/NumericTextBox.md
+11
-2
No files found.
前端组件/NumericTextBox.md
View file @
2a4adfcf
...
@@ -111,6 +111,7 @@ $("#numerictextbox").kendoNumericTextBox({
...
@@ -111,6 +111,7 @@ $("#numerictextbox").kendoNumericTextBox({
```
html
```
html
<h:hlsNumericTextBox
id=
"numerictextbox"
placeholder=
"Set A Value"
/>
<h:hlsNumericTextBox
id=
"numerictextbox"
placeholder=
"Set A Value"
/>
//js实现
<script>
<script>
$
(
"#numerictextbox"
).
kendoNumericTextBox
({
$
(
"#numerictextbox"
).
kendoNumericTextBox
({
placeholder
:
"Set A Value"
placeholder
:
"Set A Value"
...
@@ -162,17 +163,25 @@ $("#numerictextbox").kendoNumericTextBox({
...
@@ -162,17 +163,25 @@ $("#numerictextbox").kendoNumericTextBox({
</script>
</script>
```
```
##### 10.[
value](http://docs.telerik.com/kendo-ui/api/javascript/ui/numerictextbox#configuration-value)[`Number`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)_\(default: null\)_
##### 10.[
bind](http://docs.telerik.com/kendo-ui/api/javascript/ui/numerictextbox#configuration-value) 及默认值的设置
说明:设置默认值
说明:设置默认值
```
html
```
html
<h:hlsNumericTextBox
id=
"
numerictextbox
"
/>
<h:hlsNumericTextBox
id=
"
sumDueAmount
"
/>
<script>
<script>
$
(
"#numerictextbox"
).
kendoNumericTextBox
({
$
(
"#numerictextbox"
).
kendoNumericTextBox
({
value
:
10
value
:
10
});
});
</script>
</script>
//设置默认值并不可编辑
<h:hlsNumericTextBox
id=
"sumDueAmount"
bind=
"enabled: enabled, value:data.sumDueAmount"
style=
"width:100%"
/>
//设置文本框前面的名称
<h:hlsNumericTextBox
id=
"sumDueAmount"
bind=
"enabled: enabled, value:data.sumDueAmount"
prompt=
"注册资本:"
style=
"width:100%"
/>
//设置文本框前的名称的宽度
<h:hlsNumericTextBox
id=
"sumDueAmount"
bind=
"enabled: enabled, value:data.sumDueAmount"
prompt=
"注册资本:"
promptColspan=
"1"
style=
"width:100%"
/>
//设置文本的宽度
<h:hlsNumericTextBox
id=
"sumDueAmount"
bind=
"enabled: isEnabled, value:data.sumDueAmount"
colspan=
"3"
prompt=
"注册资本"
promptColspan=
"1"
style=
"width:100%"
/>
```
```
### 方法:
### 方法:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment