json-schema-form / generator-angular-schema-form-add-on

A Yeoman generator for Angular Schema Form Add-ons.
http://schemaform.io/
MIT License
14 stars 2 forks source link

Add option to pick decorator #4

Open Anthropic opened 9 years ago

Anthropic commented 9 years ago

Ideally this would allow for multiple decorators, or even an option to add to all decorators, but that would require updates to the builder to support monitoring new decorators so that it could be added as new decorators are defined.

At the least being able to pick an alternate decorator would be an awesome start.

kornosaurus commented 9 years ago

This is planned! :) Something i should get to doing really soon, Was first going to wait for material decorator release but i should easily be able to a add option for custom decorator.. or are you thinking something different? =)

Anthropic commented 9 years ago

I'm working on the Material Decorator with David and I was making a demo add on similar to how the boostrap one has the datepicker and I used your tool to get it started, saved me heaps of time so thank you :)

I've mentioned it to David before, but it would be great if the decorator provider could allow you to add an item to any decorator regardless of when it is loaded, a catch all. Reason being, I made one add on for doing field calculations, which is decorator agnostic and could be global, but within the add on which decorator should I choose!

Anyway that's not part of your tool, but if the change can be made in ASF then it would be a great way for you to offer agnostic decorator selection.

kornosaurus commented 9 years ago

Im happy to hear that :) Will definitely offer that if the change is made to ASF :) Also i am following the material project and was planning to have a list that consists of bootstrap, material and custom decorator to pick from when generating a new add-on :)