为什么需要gwt-bootstrap? [英] Why is gwt-bootstrap necessary?

查看:124
本文介绍了为什么需要gwt-bootstrap?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是GWT的新手,正在考虑使用Twitter Bootstrap作为CSS框架。但后来我遇到了 gwt-bootstrap ,它自称是在GWT应用程序中使用Bootstrap的一种方式。

I'm new to GWT and was looking at using Twitter Bootstrap for a CSS framework. But then I ran across gwt-bootstrap, which bills itself as a way of using Bootstrap in a GWT app.

由于我对GWT非常陌生,它让我有点担心/困惑:为什么GWT应用程序不能使用常规的Bootstrap框架?为什么它甚至需要gwt-bootstrap?

Since I'm so new to GWT, it has me a little concerned/confused: why can't a GWT app just use the regular Bootstrap framework? Why does it even need gwt-bootstrap?

推荐答案

它也有一些设施来绑定事件等。

It also have some facilities to bind events and etc.

但是,回答你的主要问题:这取决于。如果你不信任社区和/或有很多时间,你可以做你自己的gwt-bootstrap项目,但可能与你的项目集成,至少,这是我的情况发生了......所以,我开始了GWT-Bootstrap和一些喜欢它的家伙,大故事很简短:现在它就是这样。需要大量的改进,更新,更好的文档和许多东西,但事实是:我没有太多时间去做它。

But, answering your main question: It depends. If you don't trust community and/or have a lot of time, you could do your own gwt-bootstrap like project, but probably integrated with your project, at least, this was what happened in my case... so, I started GWT-Bootstrap and some fellas like it, and big story short: Now it is what it is. Need a lot of improvements, updates, better docs, and a lot of things, but the true is: I don't have so much time for it.

所以,如果我是你,我可能会帮助GWT-Bootstrap社区,而不是重新发明轮子,但这仅仅是我的看法。

So, if I was you, I probably will help GWT-Bootstrap community instead of "reinvent the wheel", but that's just my opinion.

快乐学习。

编辑添加评论内容@IAmYourFaja问。

EDIT to add thing @IAmYourFaja ask in comments.

意思是(或者我相信你的意思)不是集中的。

The injection as you mean (or as I believe you are meaning) is not centralized.

我们有 ResourceInjector ,注入一些资源,设置视口等,然后 Resources.gwt.xml模块,它注入CSS文件。我们也有组件类,它们设置JS插件(当需要时)和CSS类。你可以看看 TabPanel ,如果你想要的话。

We have the ResourceInjector that injects some resources, setup viewport and etc, and the Resources.gwt.xml module which injects CSS files. We also have the component classes, which setup the JS plugins (when needed) and CSS classes. You can take a look at TabPanel for an example if you want.

这篇关于为什么需要gwt-bootstrap?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆