A GWT wrapper for Bootstraptour JS library
This is a Google Web Toolkit wrapper library for BootstrapTour JavaScript project.
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>
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();
}
}
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.