Write docs for datepicker plugin

This commit is contained in:
Samuel Georges 2016-04-24 09:43:26 +10:00
parent e772e87de5
commit 39e91575af
2 changed files with 22 additions and 1 deletions

View File

@ -1,3 +1,24 @@
/*
* DatePicker plugin
*
* Data attributes:
* - data-control="datepicker" - enables the plugin on an element
* - data-format="value" - display format
* - data-min-date="value" - minimum date to allow
* - data-max-date="value" - maximum date to allow
* - data-year-range="value" - range of years to display
*
* JavaScript API:
* $('a#someElement').datePicker({ option: 'value' })
*
* Dependences:
* - Pikaday plugin (pikaday.js)
* - Pikaday jQuery addon (pikaday.jquery.js)
* - Clockpicker plugin (jquery-clockpicker.js)
* - Moment library (moment.js)
* - Moment Timezone library (moment.timezone.js)
*/
+function ($) { "use strict";
var Base = $.oc.foundation.base,
BaseProto = Base.prototype

View File

@ -1,4 +1,4 @@
<!-- Date -->
<!-- Time -->
<div class="input-with-icon right-align">
<i class="icon icon-clock-o"></i>
<input