twitter-bootstrap 在 Ember.js 中使用 Bootstrap

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/18542930/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-21 18:09:45  来源:igfitidea点击:

Using Bootstrap with Ember.js

twitter-bootstrapember.jstwitter-bootstrap-3

提问by user2734556

How do I use Bootstrap in Ember.js

如何在 Ember.js 中使用 Bootstrap

Is there any best practice somewhere? I know I can just use the styles / javascript behaviors of Bootstrap as is but it lacks communication with my application controllers,

有什么最佳实践吗?我知道我可以按原样使用 Bootstrap 的样式/javascript 行为,但它缺乏与我的应用程序控制器的通信,

Thanks

谢谢

回答by asaf000

Yes,

是的,

Try: https://github.com/ember-addons/bootstrap-for-ember

试试:https: //github.com/ember-addons/bootstrap-for-ember

It is a set of Ember components styled with Bootstrap v3,

它是一组使用 Bootstrap v3 设计的 Ember 组件,

There's also a showcase available here:

这里还有一个展示柜:

http://ember-addons.github.io/bootstrap-for-ember

http://ember-addons.github.io/bootstrap-for-ember

Few components already available such as: Modal Pane, Alerts, ProgressBar, Pills, Tab, Etc, Navigations, etc.

很少有组件可用,例如:Modal Pane、Alerts、ProgressBar、Pills、Tab、Etc、Navigations 等。

There are more special components that don't exist in Bootstrap such as Notifications: http://ember-addons.github.io/bootstrap-for-ember/dist/#/show_components/notifications

Bootstrap 中不存在更多特殊组件,例如通知:http: //ember-addons.github.io/bootstrap-for-ember/dist/#/show_components/notifications

Goodluck.

祝你好运。

回答by Deepak

You can try ember-bootstrap

你可以试试 ember-bootstrap

Install using

安装使用

ember install ember-bootstrap

and add

并添加

var app = new EmberApp(defaults, {
    'ember-bootstrap': {
        'importBootstrapCSS': true,
        'importBootstrapFont': true
    }
});

to your ember-cli-build.jsand your good to go.

到你的ember-cli-build.js和你的好去处。