Clone this repository and Bootstrap's somewhere :
git clone git://github.com/clemos/haxe-bootstrap.git git clone git://github.com/twitter/bootstrap.git
Include haxe-boostrap to your haXe project's classpath, with
You may need to set the path to your local bootstrap repo, though, which you can do either in your build.hxml file:
Or in your code:
You can also disable embedding with the
-D noEmbedBootstrap flag.
The default path is "lib/bootstrap".
setPath macro uses
You can then access bootstrap methods in your Haxe/JS class with the
using keyword :
using js.bootstrap.Button; // ... new JQuery(".my-button").button();
For better type-safety, methods such as
.button("toggle") are accessible with
The following plugins are currently implemented: