gcanti / tcomb-form

Forms library for react
https://gcanti.github.io/tcomb-form
MIT License
1.16k stars 136 forks source link

add the type to template locals #210

Closed gcanti closed 8 years ago

benmonro commented 8 years ago

:+1:

benmonro commented 8 years ago

@gcanti on a somewhat related note, how do you get the form validation status in the template? The template is outside of the scope of the react component so I can't access this.refs.form.validate()...

gcanti commented 8 years ago

how do you get the form validation status in the template?

In

benmonro commented 8 years ago

is this true in the form layout template as well? I want to display a summary box rather than just a message next to each element. I was thinking that in the form layout template I could get to those...

gcanti commented 8 years ago

I want to display a summary box rather than just a message next to each element

mmh it might be tricky... could you please open another issue with a simple example? I'll think about it

benmonro commented 8 years ago

sure, thanks

benmonro commented 8 years ago

212 @gcanti

gcanti commented 8 years ago

Released in v0.6.7 and v0.7.3

benmonro commented 8 years ago

@gcanti what is the difference between 0.6 & 0.7? When I use 0.6.7 it works fine but when I install 0.7.3 I get this error: Form.render(): A valid ReactComponent must be returned. You may have returned undefined, an array or some other invalid object.

gcanti commented 8 years ago

0.7.x uses react 0.14

benmonro commented 8 years ago

ah, ok thanks