/ocaml-cordova-plugin-datepicker

Binding OCaml to cordova-plugin-datepicker using gen_js_api.

Primary LanguageOCaml

ocaml-cordova-plugin-datepicker

LGPL-v3 licensed Build Status

Binding to cordova-plugin-datepicker

What does cordova-plugin-datepicker do?

This is a combined version of DatePicker iOS and Android and Windows plugin for Cordova/Phonegap 4.0.

Source: cordova-plugin-datepicker

How to install and compile your project by using this plugin?

This plugin depends on ocaml-js-stdlib: you need to pin it before.

Don't forget to switch to a compiler >= 4.03.0.

opam switch 4.03.0
opam install cordova-plugin-datepicker
  • Else, you can use opam by pinning the repository with
opam pin add cordova-plugin-datepicker https://github.com/dannywillems/ocaml-cordova-plugin-datepicker.git

To compile your project, use

ocamlfind ocamlc -c -o [output_file] -package gen_js_api -package ocaml-js-stdlib -package cordova-plugin-datepicker [...] -linkpkg [other arguments]

Don't forget to install cordova-plugin-datepicker with

cordova plugin add cordova-plugin-datepicker

How to use ?