Ember & Bootstrap in love


#1

Hey,

I lately started to work with some guys on an integration of Bootstrap & Ember together,

It is really fun and easy to use and lightly integrate bootstrap and ember components altogether.

It’s just the beginning of it but we have a roadmap adding support for most Bootstrap components, if someone want anything specific feel free to open issues on Github!

Hope it will help Ember.js community to build better apps in a free world! :slight_smile:

Asaf.


#2

Have you seen this project? Seems to be doing the same thing:


#3

Wow, this is gonna be confusing.

vs.

I’m one of the committers for ember-bootstrap, I see your main point of difference is using components. Would you mind starting a discussion in the ember-bootstrap issues about maybe working together on this.

No need to build the same tool twice :smile:


#4

Awesome, thanks Asaf! Do you have plans for modals?

https://github.com/emberjs-addons/ember-bootstrap has modals, but it uses TBSv2, and I use v3.


#5

you guys should absolutely work together!!

Additionally, I begun work on proper namespace support. I wonder if this would be useful for you guys.

something like:

<type>:<name>@<namespace>

example:

Bootstrap.ItemsView would be accessible in the container via view:items@bootstrap

{{render 'items@bootstrap'}} could also be possible

let me know what you think, I would love to work with you guys to improve how we share addons.


#6

Sure, please see issue #11, in the nearest coming version.


#7

Hey, I remembered your comment about Modals,

Take a look: http://ember-addons.github.io/bootstrap-for-ember/dist/#/show_components/modal

Thanks!


#8

Will view:items@myLibrary.fooNamespace work? We need to start thinking in nested namespaces because it will be needed soon as the complexity of our code/libraries/framework/etc grow.


#9

view:items@myLibrary.fooNamespace could simply be expressed as its own namespace? view:items@my-library-foo-namespace


#10

Bootstrap-For-Ember looks really promising but I dont see a way to add additional classes to the elements. My Bootstrap 3.0 Ember project has some additional class elements that I need to be able to implement and I dont see how to currently.

Using link-to I currently do it this way:

{{#link-to 'register' classNames='btn btn-lg btn-accent' tagName='button' }}Register{{/link-to}}

And in BFE I would do this:

{{bs-button size="lg" title="Register}}

Where do I add the btn-accent class?

Am I missing something or is this in the pipeline for later?


#11

I have my own implementation of the popover as a component, you guys are welcome to iterate on it if it’s up to par :smile:


#12

Hey, I suggest you to post issues in GitHub or write in the forum: https://groups.google.com/forum/#!forum/bootstrap-for-ember

Regarding your question, it’s simple as:

{{bs-button class="btn-accent" size="lg" title="Register}}

Have fun!


#13

@asaf000 Thanks for this awesome project!!

it will be nice if you had support of using btn-group as checkboxes, and of dropdowns


#14

@iguider it’s working, see: http://emberjs.jsbin.com/kemix/1/


#16

I[quote=“iguider, post:15, topic:2301”] the documentation is wrong [/quote]

I’m not following the issue, here is the example from the documentation http://emberjs.jsbin.com/joyez/1/edit. Obviously changed the controller name and namespace to adapt to my example.


#17

This is neat, anyone working on something similar but for Foundation?