Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Minor layout fixes in readme

  • Loading branch information...
commit 9277e0c49031186312147095f8e3671efd20a8c4 1 parent 112ae30
@thedersen authored
Showing with 16 additions and 7 deletions.
  1. +16 −7 README.md
View
23 README.md
@@ -1,6 +1,9 @@
# Backbone.Validation v0.6.0
-A validation plugin for [Backbone.js](http://documentcloud.github.com/backbone) that validates both your model as well as form input. Inspired by [Backbone.ModelBinding](http://github.com/derickbailey/backbone.modelbinding), and another implementation with a slightly different approach than mine at [Backbone.Validations](http://github.com/n-time/backbone.validations).
+A validation plugin for [Backbone.js](http://documentcloud.github.com/backbone) that validates both your model as well as form input.
+
+<iframe class="github-btn" src="http://markdotto.github.com/github-buttons/github-btn.html?user=thedersen&repo=backbone.validation&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="112px" height="20px"></iframe>
+<iframe class="github-btn" src="http://markdotto.github.com/github-buttons/github-btn.html?user=thedersen&repo=backbone.validation&type=fork&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="112px" height="20px"></iframe>
## Introduction
@@ -681,12 +684,14 @@ If you need to validate entire model (both attributes that has been set or not)
By default, if you configure a validator for an attribute, it is considered required. However, if you want to allow empty values and still validate when something is entered, add required: false in addition to other validators.
- validation: {
- value: {
- min: 1,
- required: false
- }
- }
+```js
+validation: {
+ value: {
+ min: 1,
+ required: false
+ }
+}
+```
### I there an elegant way to display the error message that is put into the data-error attribute?
@@ -809,6 +814,10 @@ Basic behaviour:
* Initial release
+## Inspiration
+
+Backbone.Validation is inspired by [Backbone.ModelBinding](http://github.com/derickbailey/backbone.modelbinding), and another implementation with a slightly different approach than mine at [Backbone.Validations](http://github.com/n-time/backbone.validations).
+
## License
http://thedersen.mit-license.org/
Please sign in to comment.
Something went wrong with that request. Please try again.