Christian Alfoni
a008b1ce8d
Merge pull request #16 from FoxxMD/master
...
Add method for checking if input has had interaction
2015-01-21 10:00:01 +01:00
FoxxMD
418c833e2d
Add method for checking if input has had interaction
...
* Input state has `isPristine` to represent user interaction
* `isPristine` defaults to `false`
* Is triggered by `setValue` to `true`
* Reset on `resetValue`
* `setFormPristine` sets all form inputs pristine value
* `onSubmit` sets `setFormPristine` false
2015-01-19 15:26:13 -05:00
Christian Alfoni
1ec5868f64
Fixed bug with handlers in ajax
2015-01-19 18:41:40 +01:00
Christian Alfoni
23bad21119
Merge pull request #13 from smokku/props_callback
...
Call onSuccess and onSubmitted from props after AJAX response
2015-01-19 18:38:31 +01:00
Tomasz Sterna
196bba3fda
Call onSuccess and onSubmitted from props after AJAX response
2015-01-19 14:08:40 +01:00
Christian Alfoni
80227cc50f
Added setState documentation
2015-01-17 21:55:18 +01:00
Christian Alfoni
05e3688c8b
Added setState documentation
2015-01-17 21:53:05 +01:00
Christian Alfoni
7c95bf191a
Update README.md
...
Documented the value attribute
2015-01-17 09:40:17 +01:00
Christian Alfoni
4127480839
Merge pull request #8 from smokku/empty_headers_forEach
...
Fixed exception on trying to forEach empty request headers
2015-01-16 17:30:12 +01:00
Christian Alfoni
7163b30246
Merge pull request #9 from smokku/nonJSON__response
...
Fixed uncaught exception on parsing non-JSON AJAX response
2015-01-16 17:29:33 +01:00
Tomasz Sterna
94e69e7dc0
Fixed exception on trying to forEach empty request headers
2015-01-16 16:04:55 +01:00
Tomasz Sterna
24b9110a62
Fixed uncaught exception on parsing non-JSON AJAX response
2015-01-16 16:00:48 +01:00
Christian Alfoni
b8c4414976
Merge branch 'master' of https://github.com/christianalfoni/formsy-react
2015-01-15 12:24:56 +01:00
Christian Alfoni
9e430bbf83
Fixed bug with empty validations
2015-01-14 10:32:31 +01:00
Christian Alfoni
e9743a2df1
Cross input validation, invalidateForm and bug fix
2015-01-14 10:15:49 +01:00
Christian Alfoni
7830defb34
Update README.md
2015-01-07 15:02:36 +01:00
Christian Alfoni
d813f2ade8
Update README.md
2015-01-07 15:01:36 +01:00
Christian Alfoni
915ddb8cee
Fixed required and no validations bug
2015-01-07 11:06:01 +01:00
Christian Alfoni
63938025fa
Removed onCancel
2015-01-07 09:53:17 +01:00
Christian Alfoni
b04c989cf6
Release 0.4.0
2015-01-07 07:28:15 +01:00
Christian Alfoni
dc6ac20285
Merge pull request #6 from LaustAxelsen/patch-2
...
words, spaces and special letters.
2015-01-07 07:09:18 +01:00
Christian Alfoni
32f67e24ac
Merge pull request #5 from LaustAxelsen/patch-1
...
Allow for no url, using "onSubmit" handler to pass model for manual XHR
2015-01-07 07:04:02 +01:00
LaustAxelsen
4b960bf017
Update README.md
2015-01-06 22:29:26 +01:00
LaustAxelsen
0b0e0a1b49
Update main.js
...
Include two new basic rules;
- isWords (a-z, not case sensitive and spaces e.g. "this is a pretty cat")
- isWordsSpecial (a-z, special european letters, not case sensitive and spaces e.g. "sikke en flot ø" or "touché")
2015-01-06 22:24:54 +01:00
LaustAxelsen
2289290998
Update main.js
...
Added a resetModel method which is also passed to the onSubmit callback.
2015-01-06 22:08:44 +01:00
LaustAxelsen
51bce0315b
Update main.js
...
I wanted to use formsy-react without posting or putting to a specific URL, but instead handle this internally in my single-page-application. So if no url is defined use the "onSubmit" callback with the valid model e.g. {fieldName: "myValue"}.
2015-01-06 21:53:46 +01:00
Christian Alfoni
fb47da210f
Merge branch 'master' of https://github.com/christianalfoni/formsy-react
2015-01-05 15:04:09 +01:00
Christian Alfoni
df4e84a10a
Added new handlers
2015-01-05 15:03:01 +01:00
Christian Alfoni
d12ae507d0
Update README.md
2014-11-18 09:15:41 +01:00
Christian Alfoni
20f1d71f96
Fixed props check
2014-11-17 11:53:52 +01:00
Christian Alfoni
874fe8f716
Fixed updating of props bug
2014-10-29 16:10:04 +01:00
Christian Alfoni
5bdfc8235d
onCancel handler toggles showing of cancel button
2014-10-28 15:20:51 +01:00
Christian Alfoni
014f7add09
Added hasValue() method
2014-10-28 12:56:35 +01:00
Christian Alfoni
2f20ec13e4
Fixed resetValue bug
2014-10-28 11:47:29 +01:00
Christian Alfoni
822892314c
Fixed isValue check
2014-10-28 11:43:08 +01:00
Christian Alfoni
6c99568045
Tag commit
2014-10-28 11:28:24 +01:00
Christian Alfoni
669af75b50
Merge branch 'master' of https://github.com/christianalfoni/formsy-react
2014-10-28 11:26:34 +01:00
Christian Alfoni
2e501f4f4f
Fixed showRequired and added resetValue method
2014-10-28 11:26:30 +01:00
Christian Alfoni
73f285c425
Update README.md
2014-10-23 22:59:08 +02:00
Christian Alfoni
608821ad86
updated typo
2014-10-23 22:04:40 +02:00
Christian Alfoni
4ded23c3c5
updated readme
2014-10-23 21:59:25 +02:00
Christian Alfoni
597b5b3511
updated readme
2014-10-23 15:02:32 +02:00
Christian Alfoni
a03d820f2a
Fixed typo
2014-10-22 15:11:28 +02:00
Christian Alfoni
56b6270f92
Updated readme
2014-10-22 14:58:57 +02:00
Christian Alfoni
c7c5073e8f
Updated bower install description
2014-10-22 14:53:08 +02:00
Christian Alfoni
6727636536
Initial commit
2014-10-22 14:51:26 +02:00
Christian Alfoni
0a8b066231
Initial commit
2014-10-22 08:58:33 +02:00