Commit b61f316c authored by custom's avatar custom

Updates 前端组件/hlsMaskedTextBox.md

Auto commit by GitBook Editor
parent a6f08abb
**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
&lt;!--h:为命名空间,必须要加的;maskedTextBox为组件名;id可写可不写--&gt;
&lt;h:maskedTextBox id="maskedTextBox"\/&gt;
\`\`\`
\#\#\#\# \*\*一般属性\*\*
&gt; \*\*提示:\*\*
&gt; - 属性用法请参考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
&lt;**h:hlsMaskedTextBox name="** **MaskedText** **"**
** id="** **MaskedText** **"**
** bind="enabled: enabled, value:model.** **MaskedText** **"**
** prompt="MaskedText** **"**
** colspan="3"**
** promptColspan="1"**
** placeholder="** **MaskedText** **"**
** required="true"**
** clearPromptChar="true"**
** **\/&gt;
\`\`\`
&gt; \*\*提示:\*\*
&gt; - 上述所有属性直接添加在标签内即可,(\*\*\[属性名\] = "..."\*\*
\#\#\#\# \*\*子标签\*\*
属性名 \| 类型
-------- \| ---
rules\| Object
\`\`\`javascript
function rules\(\){
\/\/...
}
\`\`\`
\`\`\`xml
&lt;h:maskedTextBox id="maskedtTextBox"&gt;
&lt;h:rules "~"="\/\[+-\]\/" "^"="fn:rules"\/&gt;
&lt;\/h:maskedTextBox&gt;
\`\`\`
&gt;\*\*提示\*\*
&gt; - 遇到\*\*object\*\*类型 就向下添加子标签,当遇到普通类型时,就添加到当前的标签上。
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