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

Allow validation params in object without custom message #561

Open
wants to merge 3 commits into
base: v2.1.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,21 @@ Learn more about Custom Rules on the [WIKI](https://github.com/Knockout-Contrib/
```html
<input type="text" data-bind="value: myProp" step="3" />
```
**Special Note, the 'MinLength' attribute was removed until the HTML5 spec fully supports it**

**MaxLength**:

```html
<input type="text" data-bind="value: myProp" maxlength="20" />
```

**MinLength**:

```html
<input type="text" data-bind="value: myProp" minlength="3" />
```

_Note that the HTML5 attributes are lowercase ("maxlength"), whereas the
Native Validation Rules are camel case ("maxLength")._

##Knockout Bindings

Expand Down
Loading