Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOM传参支持data-timely #133

Closed
niceue opened this issue Jul 4, 2014 · 0 comments
Closed

DOM传参支持data-timely #133

niceue opened this issue Jul 4, 2014 · 0 comments

Comments

@niceue
Copy link
Owner

niceue commented Jul 4, 2014

v0.8.0起DOM传参支持data-timely了,对应js参数timely。

同时不再支持notimely属性

timely允许的值为:

  • 0 :输入和失去焦点时都不验证,只在提交表单的时候验证
  • 1 :失去焦点和提交时验证
  • 2 :输入、失去焦点和提交都验证

对于checkbox或者radio,只能在这一组的第一个input上面设置data-ruledata-timely

<input type="text" name="a" data-rule="required" data-timely="0">

<select name="b" data-rule="required" data-timely="2"></select>

<input type="checkbox" name="c" data-rule="required" data-timely="2">
<input type="checkbox" name="c">
<input type="checkbox" name="c">
@niceue niceue added this to the 0.8.0 milestone Jul 4, 2014
@niceue niceue added the feature label Jul 4, 2014
@niceue niceue closed this as completed in 2b3cf06 Jul 4, 2014
niceue added a commit that referenced this issue Jul 7, 2014
@niceue niceue removed the change label Mar 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant