[go: up one dir, main page]

slick

Externs for Slick
https://github.com/okawa-h/slick-extern/

To install, run:

haxelib install slick 0.2.0 

See using Haxelib in Haxelib documentation for more information.

README.md

slick externs for Haxe

Overview

This is extern for Haxe.

Original JavaScript code: https://github.com/kenwheeler/slick/

Original API document: https://kenwheeler.github.io/slick/

Example

This is extern. Load slick in HTML.

Please read the jQueryExternForHaxe documentation carefully. You need jQueryExternForHaxe to work well.

https://github.com/andyli/jQueryExternForHaxe

Haxe code:

import js.Browser;
import js.jquery.JQuery;

class Main {

  public static function main():Void {

    Browser.window.addEventListener('DOMContentLoaded', init);

  }

  private static function init():Void {

    new JQuery('.variable-width').slick({
      dots: true,
      infinite: true,
      speed: 300,
      slidesToShow: 1,
      centerMode: true,
      variableWidth: true
    });

  }

}

References

Original JavaScript code: https://github.com/kenwheeler/slick/

Original API document: https://kenwheeler.github.io/slick/

Contributors
okawa-h
Version
0.2.0
Published
6 years ago
License
MIT

All libraries are free

Every month, more than a thousand developers use Haxelib to find, share, and reuse code — and assemble it in powerful new ways. Enjoy Haxe; It is great!

Explore Haxe

Haxe Manual

Haxe Code Cookbook

Haxe API documentation

You can try Haxe in the browser! try.haxe.org

Join us on GitHub!

Haxe is being developed on GitHub. Feel free to contribute or report issues to our projects.

Haxe on GitHub