angular-dynamic-forms
angular-dynamic-forms copied to clipboard
Bootstrap support
Hi,
did you consider theming support, aka optionally supporting Bootstrap? If you have some advice for me, I'd volunteer implementing it.
The plan is to support HTML templates instead of hard coded elements. It may be a little tricky to pull off properly, and the default templates should produce identical HTML to the current implementation, but otherwise I don't expect much in the way of problems. The tricky part is how to define such templates, and identify which to use. My initial thoughts are to define another Directive to hold the template itself, then either put it inside the main dynForm elements (which can get tricky with nesting), or reference it from an attribute on the dynForm element instead. The latter approach seems more flexible and stable, so we just need a name for the attribute. And one for the template element, too.
isn't it only the element's class which you'd influence? That could work much easier.
If it's just classes you're looking for, see the README for the attributes option.