Why is gwt-bootstrap needed?

I'm new to GWT and am looking at using Twitter Bootstrap for CSS framework. But then I stumbled upon gwt-bootstrap , which borrows itself as a way to use Bootstrap in a GWT application.

Since I'm so new to GWT, this bothers me / confuses a bit: why can't a GWT application use the usual Bootstrap framework? Why is gwt-bootstrap needed?

+6
source share
2 answers

I started GWT-Bootstrap with the goal of linking the JS and CSS bootstrap to the reusable GWT components, otherwise you will probably have to replicate the code, which will probably end up creating your own code, which will probably be very similar in GWT-Bootstrap.

It also has some features for event binding, etc.

But, answering your main question: it depends. If you do not trust the community and / or have a lot of time, you can make your own gwt-bootstrap as a project, but probably integrated with your project, at least this is what happened in my case ... therefore, I started GWT-Bootstrap and some guys like this, and the big story is short: now this is what it is. It needs a lot of improvements, updates, better documents and a lot of things, but itโ€™s true: I donโ€™t have much time for this.

So, if I were you, I would probably help the GWT-Bootstrap community instead of reinventing the wheel, but thatโ€™s just my opinion.

Happy learning.


EDIT add the @IAmYourFaja thing in the comments.

Injection, because you mean (or, I believe, you mean), is not centralized.

We have a ResourceInjector that injects some resources, customizes the viewport, etc., and a Resource.gwt.xml module that injects CSS files. We also have component classes that install JS plugins (if necessary) and CSS classes. If you want, take a look at TabPanel .

+13
source

It seems like most of gwt-bootstrap is wrapping parts of the javascript bootstrap, which means you can continue to use Java. There are other pieces that allow you to use Enums instead of the simple Css class names.

GWT generates javascript and css, and you can mix other Css and JS with it. I think this project just does it so that you can keep your codebase in Java.

It looks like it also supports UiBinder-y links, as in

<b:Row> <b:Column size="4">...</b:Column> <b:Column size="8">...</b:Column> </b:Row> 
+2
source

Source: https://habr.com/ru/post/944911/


All Articles