comments for docs

This commit is contained in:
vitalets 2013-01-11 19:43:47 +04:00
parent 8385faacce
commit e3ed66c606
3 changed files with 14 additions and 7 deletions
grunt.js
src/inputs
combodate
date

@ -212,7 +212,13 @@ module.exports = function(grunt) {
options: { options: {
basePath: 'inputs-ext' basePath: 'inputs-ext'
} }
} },
ui_datepicker: {
files: {
//copy jquery ui datepicker
'<%= dist %>/jquery-editable/jquery-ui-datepicker/' : 'src/inputs/dateui/jquery-ui-datepicker/**'
}
}
}, },
uglify: {} uglify: {}

@ -1,19 +1,19 @@
/** /**
Combodate input - dropdown date and time picker. Combodate input - dropdown date and time picker.
Based on [combodate](http://vitalets.github.com/combodate) plugin. Based on [combodate](http://vitalets.github.com/combodate) plugin. To use it you should manually include [momentjs](http://momentjs.com).
To use it you should manually include [momentjs](http://momentjs.com).
Allows to enter: Allows to enter:
* only date * only date
* only time * only time
* datetime * datetime
Please note, that format is taken from momentjs and not compatible with bootstrap-datepicker / jquery UI datepicker. Please note, that format is taken from momentjs and **not compatible** with bootstrap-datepicker / jquery UI datepicker.
Internally value stored as Moment js object Internally value stored as momentjs object.
@class combodate @class combodate
@extends abstractinput @extends abstractinput
@final @final
@since 1.4.0
@example @example
<a href="#" id="dob" data-type="combodate" data-pk="1" data-url="/post" data-value="1984-05-15" data-original-title="Select date"></a> <a href="#" id="dob" data-type="combodate" data-pk="1" data-url="/post" data-value="1984-05-15" data-original-title="Select date"></a>
<script> <script>

@ -2,7 +2,8 @@
Bootstrap-datepicker. Bootstrap-datepicker.
Description and examples: https://github.com/eternicode/bootstrap-datepicker. Description and examples: https://github.com/eternicode/bootstrap-datepicker.
For **i18n** you should include js file from here: https://github.com/eternicode/bootstrap-datepicker/tree/master/js/locales For **i18n** you should include js file from here: https://github.com/eternicode/bootstrap-datepicker/tree/master/js/locales
and set `language` option. and set `language` option.
Since 1.4.0 date has different appearance in **popup** and **inline** modes.
@class date @class date
@extends abstractinput @extends abstractinput