How to install gwtbootstrap3?

I am extremely new to gwt and I need to change my existing application to gwtbootstrap for templates using uibinder.

I was looking for basic installation instructions. Where the files go after downloading. from https://github.com/gwtbootstrap3/gwtbootstrap3/tree/master/gwtbootstrap3

+4
source share
1 answer

If you do not have Maven

1) Download the JAR file and add it to the classes path http://mvnrepository.com/artifact/org.gwtbootstrap3/gwtbootstrap3

2) Inherit the GwtBootstrap3 module in your GWT module:

<module>
    <inherits name="org.gwtbootstrap3.GwtBootstrap3"/>
    ...
</module>

3) Use widgets in your UiBinder XML:

<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
             xmlns:g="urn:import:com.google.gwt.user.client.ui"
             xmlns:b="urn:import:org.gwtbootstrap3.client.ui">

    <b:Container>
        <b:PageHeader>Yay buttons!</b:PageHeader>

        <b:Button>Some button</b:Button>
        <b:Button type="DANGER" size="LARGE">Dangerous button</b:Button>
    </b:Container>

</ui:UiBinder>
+8
source

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


All Articles