From 7c95bf191ad86756bf879c61d6e0d7787cc13063 Mon Sep 17 00:00:00 2001 From: Christian Alfoni Date: Sat, 17 Jan 2015 09:40:17 +0100 Subject: [PATCH] Update README.md Documented the value attribute --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 6f992c1..eb4551b 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,7 @@ A form input builder and validator for React JS - [onInvalid()](#oninvalid) - [Formsy.Mixin](#formsymixin) - [name](#name) + - [value](#value) - [validations](#validations) - [validationError](#validationerror) - [required](#required) @@ -246,6 +247,12 @@ Whenever the form becomes invalid the "onInvalid" handler is called. Use it to f ``` The name is required to register the form input component in the form. +#### value +```html + +``` +You should always use the **getValue()** method inside your formsy form element. To pass a default value, use the value attribute. + #### validations ```html