Code Monkey home page Code Monkey logo

gwt-lightslider's Introduction

gwt-lightslider Build Status

GwtLightSlider is a LightSlider Wrapper for Google Web Toolkit. The objective of this library is to provide easy access to the already existing LightSlider Javascript library.

Getting Started

First you will need to import the dependency:

<dependency>
    <groupId>nz.co.doltech</groupId>
    <artifactId>gwt-lightslider</artifactId>
    <version>1.0-SNAPSHOT</version>
</dependency>

Now that you have the dependency in your project you can add them to your GWT module.

<inherits name="nz.co.doltech.gwtls.LightSlider" />

or you can import the module with more extensive information for debugging.

<!-- Debugging of Interactions, providing non-minified js/css -->
<inherits name="nz.co.doltech.gwtls.LightSliderDebug" />

Note that the default LightSlider modules assume you have JQuery library already loaded, to make LightSlider load JQuery you can add the following module:

<!-- Loads JQuery for you -->
<inherits name="nz.co.doltech.gwtls.LightSliderWithJQuery" />

<!-- Or, same thing for Debugging -->
<inherits name="nz.co.doltech.gwtls.LightSliderDebugWithJQuery" />

Usage Guide

The use is simple and can be done using standard Java or can make use of the UiBinder.

Import the xmlns for uibinder

xmlns:ls="urn:import:nz.co.doltech.gwtls.client.ui"

Then make use of the Widget, like so:

<ls:LightSlider ui:field="slider" gallery="true" adaptiveHeight="true">
    <ls:Slide imageUrl="images/1.png" thumbUrl="thumbs/1.png" />
    <ls:Slide imageUrl="images/2.png" thumbUrl="thumbs/2.png" />
</ls:LightSlider>

Slides can also be added dynamically:

@UiField LightSlider slider;

public void addNewSlide() {
   slider.add(new Slider("images/2.png", "thumbs/2.png"));
}

API Documentation

You can find the libraries API documentation here

Issues

If you find any issues please list them in the issue tracker and it will be looked into as soon as possible.

Contributing

TODO

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.