ember-cli-dynamic-forms icon indicating copy to clipboard operation
ember-cli-dynamic-forms copied to clipboard

Possible to Specify Another Alpaca View?

Open maprules1000 opened this issue 8 years ago • 3 comments

I've been digging into this and Alpaca directly, but I can't find a clear answer: would it be possible to specify a custom view (web-create for example) in the component that would subsequently disable/remove bootstrap? I use a different style library and bootstrap doesn't play nice with it.

I currently achieve this with a custom fork that hard-codes a view in and removes all the bootstrap calls in the build pipeline, but this is shameful and not ideal.

maprules1000 avatar Aug 24 '16 19:08 maprules1000

Hi @maprules1000 I think that's a good request (not always a bootstrap fan). I'll take a look at your fork and see what we can build into the addon.

toddjordan avatar Aug 24 '16 20:08 toddjordan

Awesome! Thanks so much!

maprules1000 avatar Aug 24 '16 20:08 maprules1000

Did some of my own digging and found this section on creating a custom view: http://www.alpacajs.org/docs/api/views.html#toc_7

In the section previous, it shows you how to override certain classes. If you can get this working you can call Alpaca.registerView in an initializer to register it.

I'm currently working on the ability to provide replacement renderers for alpaca, which would still leverage its json-schema format, but would instead render things like ember components. That might be another alternative when it comes.

Let me know what you do...

toddjordan avatar Aug 26 '16 22:08 toddjordan