Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible to Specify Another Alpaca View? #42

Open
maprules1000 opened this issue Aug 24, 2016 · 3 comments
Open

Possible to Specify Another Alpaca View? #42

maprules1000 opened this issue Aug 24, 2016 · 3 comments

Comments

@maprules1000
Copy link
Contributor

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.

@toddjordan
Copy link
Owner

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.

@maprules1000
Copy link
Contributor Author

Awesome! Thanks so much!

@toddjordan
Copy link
Owner

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants