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
0
Merge Requests
0
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
Spencer Chang
hel-developer-guide
Commits
f18c9b8e
Commit
f18c9b8e
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
2a4adfcf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
NumericTextBox.md
前端组件/NumericTextBox.md
+11
-6
No files found.
前端组件/NumericTextBox.md
View file @
f18c9b8e
...
...
@@ -168,20 +168,25 @@ $("#numerictextbox").kendoNumericTextBox({
说明:设置默认值
```
html
<h:hlsNumericTextBox
id=
"sumDueAmount"
/>
//定义数据模型
<script>
$
(
"#numerictextbox"
).
kendoNumericTextBox
({
value
:
10
});
var
viewModel
=
kendo
.
observable
({
enabled
:
false
,
//或者true
data
:
{
sumDueAmount
:
10000
},
});
</script>
//设置默认值并不可编辑
//设置是否编辑
<h:hlsNumericTextBox
id=
"sumDueAmount"
bind=
"enabled: enabled"
style=
"width:100%"
/>
//设置默认值
<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:
isE
nabled, value:data.sumDueAmount"
colspan=
"3"
prompt=
"注册资本"
promptColspan=
"1"
style=
"width:100%"
/>
<h:hlsNumericTextBox
id=
"sumDueAmount"
bind=
"enabled:
e
nabled, 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