Check out https://github.com/Textalk/angular-schema-form

On Friday, January 25, 2013 1:23:06 AM UTC-8, Alec Taylor wrote:
>
> Can someone tell me why there isn't an AngularJS form generator? 
>
> I am planning to build one; but it seems like such a generalised 
> problem that I'm very surprised it's not built into the framework! 
>
> (I discussed this at an AngularJS meetup at Google only last-night) 
>
> Here is the architecture I plan to follow; with changes made along the 
> way as need presents: 
>
> Input schema (REST; then transposed into a model; also plan to be able 
> to generate Forms from Factory): 
> {'name': 'signup_form', 
> 'csrf':<uuid>, 
> 'fields':{'name1': 'validator: IS_IN_SET(['a','b','c'], 
> widget=html.dropdown, multiple=False), 
>           'name2': 'validator: IS_IN_ASYNC(<URL>, 
> widget=twitter_bootstrap.typeahead), 
>           'name3': 'validator: IS_EMAIL()', 
>           'name4': 'validator: IS_MATCH(<regex>)}, 
> 'callback':<location> 
> } 
>
> Form creation syntax: 
> FORM('signup_form') 
>
> Note that the syntax is taken from Ruby on Rails; specifically how the 
> Python "web2py" framework has 'copied' it. 
>
> Also interested in hearing suggestions on how to manage dependent 
> fields. E.g.: based on what you select in field1 show or don't show 
> field3; or move things between fields (e.g.: as array elements). 
>
> Anyone interested in building this (with me); and/or explaining why 
> this isn't already in AngularJS? 
>
> Thanks for all suggestions, 
>
> Alec Taylor 
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to