Gwt Bootstrap Tour

A GWT wrapper for Bootstraptour JS library

What Is It

This is a Google Web Toolkit wrapper library for BootstrapTour JavaScript project.

Setup

Download the library from the links above or if you are using Maven, just add GwtBootStrapTour to your pom.xml:

<dependency>
     <groupId>com.github.christianlacerda</groupId>
     <artifactId>gwt-bootstrap-tour</artifactId>
     <version>0.10.1</version>
 </dependency>

Include GwtBootStrapTour in your *.gwt.xml:

<module>
     <!-- Other module inherits -->
     <inherits name="com.github.christianlacerda.GwtBootstrapTour"/>
 </module>

How to Use

Setting up your Tour is pretty simple, here is a example of using it from your GWT Entry Point:

public class MyProject implements EntryPoint  {

    @Override
    public void onModuleLoad() {
        Tour tour = Tour.create();

        Step firstStep = Step.create();
        first.setElement(textBox.getElement());
        first.setTitle("My First Title");
        first.setContent("Wellcome to my first Tour!")

        Step secondStep = Step.create();
        secondStep.setElement(textBoxTwo.getElement());
        secondStep.setTitle("Well done!");
        secondStep.setContent("You have walked through the tour")

        tour.addSteps(firstStep, secondStep);

        tour.init();
        tour.start();
    }
}

Who is Christian Lacerda?

Christian Lacerda

A entrepreneur developer from Brazil living and working in different places around the world. He can be found on Twitter or GitHub. Enjoyed the library? Share it on Twitter and if you find bugs, submit a pull request and improve it yourself.