select2 comments for docs

This commit is contained in:
vitalets
2013-01-16 19:12:51 +04:00
parent adb13af1e8
commit 0a8561cabd

@ -1,5 +1,6 @@
/** /**
Select2 input. Based on https://github.com/ivaynberg/select2. Select2 input. Based on amazing work of Igor Vaynberg https://github.com/ivaynberg/select2.
Please see [original docs](http://ivaynberg.github.com/select2) for detailed description and options.
@class select2 @class select2
@extends abstractinput @extends abstractinput
@ -164,8 +165,13 @@ $(function(){
**/ **/
placeholder: null, placeholder: null,
/** /**
Source data for select. It will be assigned to select2 `data` property and kept just for convenience. Source data for select. It will be assigned to select2 `data` property and kept here just for convenience.
Please note, that format is different from simple `select` input. Please note, that format is different from simple `select` input: use 'id' instead of 'value'.
E.g. `[{id: 1, text: "text1"}, {id: 2, text: "text2"}, ...]`.
@property source
@type array
@default null
**/ **/
source: null, source: null,
/** /**