diff --git a/src/inputs/checklist.js b/src/inputs/checklist.js index 407406e..f7ff23f 100644 --- a/src/inputs/checklist.js +++ b/src/inputs/checklist.js @@ -129,16 +129,16 @@ $(function(){ /** @property inputclass @type string - @default + @default null **/ - inputclass: '', + inputclass: null, /** - Separator of values when reading from 'data-value' string + Separator of values when reading from `data-value` attribute @property separator @type string - @default ', ' + @default ',' **/ separator: ',' }); diff --git a/src/inputs/date/date.js b/src/inputs/date/date.js index ea70ab1..ecbe01b 100644 --- a/src/inputs/date/date.js +++ b/src/inputs/date/date.js @@ -128,9 +128,9 @@ $(function(){ tpl:'<div class="editable-date well"></div>', /** @property inputclass - @default + @default null **/ - inputclass: '', + inputclass: null, /** Format used for sending value to server. Also applied when converting date from <code>data-value</code> attribute.<br> Possible tokens are: <code>d, dd, m, mm, yy, yyyy</code> diff --git a/src/inputs/date/datefield.js b/src/inputs/date/datefield.js index cc8050a..0919de4 100644 --- a/src/inputs/date/datefield.js +++ b/src/inputs/date/datefield.js @@ -2,6 +2,11 @@ Bootstrap datefield input - modification for inline mode. Shows normal <input type="text"> and binds popup datepicker. Automatically shown in inline mode. + +@class datefield +@extends date + +@since 1.4.0 **/ (function ($) { @@ -52,7 +57,6 @@ Automatically shown in inline mode. DateField.defaults = $.extend({}, $.fn.editabletypes.date.defaults, { /** @property tpl - @default **/ tpl:'<div class="input-append date"><input type="text"/><span class="add-on"><i class="icon-th"></i></span></div>', /** diff --git a/src/inputs/dateui/dateui.js b/src/inputs/dateui/dateui.js index d532b31..7ac71e9 100644 --- a/src/inputs/dateui/dateui.js +++ b/src/inputs/dateui/dateui.js @@ -1,7 +1,7 @@ /** jQuery UI Datepicker. Description and examples: http://jqueryui.com/datepicker. -This input is also accessible as **date** type. Do not use it together with __bootstrap-datepicker__ as both apply <code>$().datepicker()</code> method. +This input is also accessible as **date** type. Do not use it together with __bootstrap-datepicker__ as both apply <code>$().datepicker()</code> method. For **i18n** you should include js file from here: https://github.com/jquery/jquery-ui/tree/master/ui/i18n. @class dateui @@ -139,9 +139,9 @@ $(function(){ tpl:'<div class="editable-date"></div>', /** @property inputclass - @default '' + @default null **/ - inputclass: '', + inputclass: null, /** Format used for sending value to server. Also applied when converting date from <code>data-value</code> attribute.<br> Full list of tokens: http://docs.jquery.com/UI/Datepicker/formatDate diff --git a/src/inputs/dateui/dateuifield.js b/src/inputs/dateui/dateuifield.js index 3b16267..7effc06 100644 --- a/src/inputs/dateui/dateuifield.js +++ b/src/inputs/dateui/dateuifield.js @@ -2,6 +2,11 @@ jQuery UI datefield input - modification for inline mode. Shows normal <input type="text"> and binds popup datepicker. Automatically shown in inline mode. + +@class dateuifield +@extends dateui + +@since 1.4.0 **/ (function ($) { @@ -48,9 +53,9 @@ Automatically shown in inline mode. tpl: '<input type="text"/>', /** @property inputclass - @default '' + @default null **/ - inputclass: '', + inputclass: null, /* datepicker config */ datepicker: { diff --git a/src/inputs/list.js b/src/inputs/list.js index e478b94..c262109 100644 --- a/src/inputs/list.js +++ b/src/inputs/list.js @@ -254,7 +254,7 @@ List - abstract class for inputs that have source option loaded from js array or @type string | array | object | function @default null **/ - source:null, + source: null, /** Data automatically prepended to the beginning of dropdown list. @@ -262,7 +262,7 @@ List - abstract class for inputs that have source option loaded from js array or @type string | array | object | function @default false **/ - prepend:false, + prepend: false, /** Error message when list cannot be loaded (e.g. ajax error) diff --git a/src/inputs/text.js b/src/inputs/text.js index cce983f..62db4ab 100644 --- a/src/inputs/text.js +++ b/src/inputs/text.js @@ -98,7 +98,11 @@ $(function(){ placeholder: null, /** - Whether to show `clear` button / link or not + Whether to show `clear` button + + @property clear + @type boolean + @default true **/ clear: true }); diff --git a/src/inputs/wysihtml5/wysihtml5.js b/src/inputs/wysihtml5/wysihtml5.js index 8234f6f..ce30d08 100644 --- a/src/inputs/wysihtml5/wysihtml5.js +++ b/src/inputs/wysihtml5/wysihtml5.js @@ -1,12 +1,19 @@ /** -Bootstrap wysihtml5 input -See https://github.com/jhollingworth/bootstrap-wysihtml5 +Bootstrap wysihtml5 editor. +To use it you should **manually** include required js and css files. + + <link rel="stylesheet" type="text/css" href="/css/bootstrap-wysihtml5.css"></link> + <script src="js/wysihtml5-0.3.0.js"></script> + <script src="js/bootstrap-wysihtml5.js"></script> + +You can download these files from https://github.com/jhollingworth/bootstrap-wysihtml5 @class wysihtml5 @extends abstractinput @final +@since 1.4.0 @example -<a href="#" id="comments" data-type="wysihtml5" data-pk="1">awesome comment!</a> +<div id="comments" data-type="wysihtml5" data-pk="1"><h2>awesome</h2> comment!</div> <script> $(function(){ $('#comments').editable({ @@ -86,9 +93,9 @@ $(function(){ tpl:'<textarea class="editable-wysihtml5"></textarea>', /** @property inputclass - @default + @default null **/ - inputclass: '', + inputclass: null, /** Placeholder attribute of input. Shown when input is empty. @@ -106,7 +113,8 @@ $(function(){ **/ rows: 10, /** - Wysihtml5 defaut options + Wysihtml5 defaut options. + See https://github.com/jhollingworth/bootstrap-wysihtml5#options @property wysihtml5 @type object