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
b61f316c
Commit
b61f316c
authored
Jul 25, 2017
by
custom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updates 前端组件/hlsMaskedTextBox.md
Auto commit by GitBook Editor
parent
a6f08abb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
111 additions
and
19 deletions
+111
-19
hlsMaskedTextBox.md
前端组件/hlsMaskedTextBox.md
+111
-19
No files found.
前端组件/hlsMaskedTextBox.md
View file @
b61f316c
**Form表单-maskedText **
!
[](
/assets/Q@06402TWZG54}F{`I46[Z8.png
)
code:
```
<h:hlsForm>
<h:hlsHBox>
<h:hlsMaskedTextBox name="text"
id="text"
bind="enabled: enabled, value:model.text"
prompt="文本框"
colspan="3"
promptColspan="1"
style="width:100%"
placeholder="文本框"
required="true" />
</h:hlsHBox>
</h:hlsForm>
```
MaskedTextBox
-------------
格式框
\#\#\#\#\#
xml配置
\`\`\`
xml
<
!--h:为命名空间,必须要加的;maskedTextBox为组件名;id可写可不写--
>
<
h:maskedTextBox id="maskedTextBox"
\/
>
\`\`\`
\#\#\#\#
\*\*
一般属性
\*\*
>
\*\*
提示:
\*\*
>
- 属性用法请参考kendoui API文档的maskedTextBox:http:
\/\/
docs.telerik.com
\/
kendo-ui
\/
api
\/
javascript
\/
ui
\/
maskedtextbox
属性名
\|
类型
--------
\|
---
clearPromptChar
\|
Boolean
culture
\|
String
mask
\|
String
promptChar
\|
String
unmaskOnPost
\|
Boolean
value
\|
String
change
\|
Function
caseLetter
\|
String
clearButton
\|
Boolean
placeholder
\|
String
bind
\|
Function
required
\|
Boolean
用法示例:
\`\`\`
xml
<
**h:hlsMaskedTextBox name="**
**MaskedText**
**"**
** id="**
**MaskedText**
**"**
** bind="enabled: enabled, value:model.**
**MaskedText**
**"**
** prompt="MaskedText**
**"**
** colspan="3"**
** promptColspan="1"**
** placeholder="**
**MaskedText**
**"**
** required="true"**
** clearPromptChar="true"**
** **
\/
>
\`\`\`
>
\*\*
提示:
\*\*
>
- 上述所有属性直接添加在标签内即可,(
\*\*\[
属性名
\]
= "..."
\*\*
)
\#\#\#\#
\*\*
子标签
\*\*
属性名
\|
类型
--------
\|
---
rules
\|
Object
\`\`\`
javascript
function rules
\(\)
{
\/\/
...
}
\`\`\`
\`\`\`
xml
<
h:maskedTextBox id="maskedtTextBox"
>
<
h:rules "~"="
\/\[
+-
\]\/
" "^"="fn:rules"
\/
>
<
\/h:maskedTextBox
>
\`\`\`
>
\*\*
提示
\*\*
:
>
- 遇到
\*\*
object
\*\*
类型 就向下添加子标签,当遇到普通类型时,就添加到当前的标签上。
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