0d98ea03af
Enables a stored value, which can be passed by the function 'result' to the next call of the function 'data'. This is a solution for issue #72 Example: data: function (term, page, roundtripValue) { var options = { q: term, limit: 5, }; if (typeof(roundtripValue) !== 'undefined' && roundtripValue != null) { options['continuation_handle'] = roundtripValue; } return options; }, results: function (data, page) { var roundtripValue = data.continuation_handle; var more = typeof(roundtripValue) !== 'undefined'; return {results: data.results, more: more, roundtripValue: roundtripValue}; }, Signed-off-by: Igor Vaynberg <igor.vaynberg@gmail.com> |
||
---|---|---|
LICENSE | ||
README.md | ||
release.sh | ||
select2.css | ||
select2.js | ||
select2.png | ||
spinner.gif |
Select2
Select2 is a jQuery based replacement for select boxes. It supports searching, remote data sets, and infinite scrolling of results. Look and feel of Select2 is based on the excellent Chosen library.
To get started -- checkout http://ivaynberg.github.com/select2!
Bug tracker
Have a bug? Please create an issue here on GitHub!
https://github.com/ivaynberg/select2/issues
Mailing list
Have a question? Ask on our mailing list!
https://groups.google.com/d/forum/select2
Copyright and License
Copyright 2012 Igor Vaynberg
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except in compliance with the License. You may obtain a copy of the License in the LICENSE file, or at:
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.