Bootstrap for Ember
Bootstrap for Ember.js is a collection of UI components based on Twitter Bootstrap v3 for Ember.js
Bootstrap for Ember goes much further than using plain Bootstrap by providing extra functionality by leveraging the power of Ember.
With the power of Ember.js and the beauty of Bootstrap, expect interactive, clean, lightweight, powerful and most importantly very easy to use components. In fact, using the components is usually much easier and shorter than using Bootstrap as is, see showcase!
ShowCase
A picture is worth a thousand words
See ShowCase
Why?
Because Bootstrap is awesome but using it as is for Ember apps makes code dirty as the interaction with Controllers or other Ember components requires code wiring.
This project is heavily based on Ember Components, which makes the usage of the components fun and doesnt ruin the simplicy of Bootstrap usage at all,
Important!
This project is under AGGRESSIVE development and changes constantly, if you find it interesting, we suggest you to watch it or visit often to see the new stuff, and if you like it, star it :-)
Quotes
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>Also, http://t.co/NtqRMNtsA4 (Bootstrap for #emberjs using components) is kind of awesome!
— Yehuda Katz (@wycats) August 31, 2013
Usage
Installation
Simply copy the 'dist' folder to your project or use Bower:
bower install ember-addons.bs_for_ember --save
Configuration
Include files in your project
- You must include the
bs-core.min.js
file before any other JS components files, this is the minimal core file of the library. - Then include one or more JS components in your project, see the
/dist/js
folder for the component list.
Note: You still need to include the bootstrap css file, but you don't need to include any bootstrap JS files.
Register components by Mixin
When you create your app, use the Register
mixin to register the components:
App = Ember.Application.createWithMixins(Bootstrap.Register);
Step by Step
For step by step instructions, see Hello World - Step by Step
Thats all, happy coding!
Community
- You can post issues in Github
- Discussions: https://groups.google.com/forum/#!forum/bootstrap-for-ember
License
Standard Apache2, see LICENSE.