Domain Object Reactive Forms
Version 4 for Angular 5+.
I'm maintaining this library in my free time. But since my son was born in 2017, I have little to no free time :)
Model-driven forms within the model!
Angular's Reactive Forms (a.k.a. Model-driven Forms) are great. Then, the dynamic generation of such forms is the next evolution step (sometimes called Dynamic Forms). This library is about taking those things to yet another level by coupling forms with Domain Objects.
Want to create a form for an object?
Add some annotations to the object.
Create a Component form which implements
IDorfFormand uses some annotations. E.g. you should pass the above object as an annotated (
@DorfObjectInput()) property.// must be above the Component annotation!
You are done! Really! Enjoy your Reactive Form.
The aim of this library is to speed up boring things like a creation of the ordinary forms and styling them. Library is not strictly connected with any CSS framework. You can just pass the classes as
Future plans include:
- More tests, a nice documentation and step by step tutorial on building with DORF
- UX improvements - aria support, styles prepared for most common libraries
- Reactive grids. It is another boring, ordinary thing (and
onSummaryis already presented in the
- Angular Material module
- Form arrays
- Methods for speeding up the creation of custom fields (even more)