angular-dynamic-forms icon indicating copy to clipboard operation
angular-dynamic-forms copied to clipboard

Bootstrap support

Open stephanstapel opened this issue 10 years ago • 3 comments

Hi,

did you consider theming support, aka optionally supporting Bootstrap? If you have some advice for me, I'd volunteer implementing it.

stephanstapel avatar Jan 29 '15 14:01 stephanstapel

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.

danhunsaker avatar Jan 29 '15 15:01 danhunsaker

isn't it only the element's class which you'd influence? That could work much easier.

stephanstapel avatar Jan 29 '15 15:01 stephanstapel

If it's just classes you're looking for, see the README for the attributes option.

danhunsaker avatar Jan 30 '15 01:01 danhunsaker