Lines Matching refs:options

405      * @param options object containing configuration parameters
406 * @param options.params parameter map for the transport ajax call, can contain such options as cache, jsonpCallback, etc. see $.ajax
407 * @param options.transport function that will be used to execute the ajax request. must be compatible with parameters supported by $.ajax
408 * @param options.url url for the data
409 * @param options.data a function(searchTerm, pageNumber, context) that should return an object containing query string parameters for the above url.
410 * @param options.dataType request data type: ajax, jsonp, other datatypes supported by jQuery's $.ajax function or the transport function if specified
411 * @param options.quietMillis (optional) milliseconds to wait before making the ajaxRequest, helps debounce the ajax function if invoked too often
412 * @param options.results a function(remoteData, pageNumber) that converts data returned form the remote request to the format expected by Select2.
418 function ajax(options) {
421 quietMillis = options.quietMillis || 100,
422 ajaxUrl = options.url,
428 var data = options.data, // ajax data function
430 transport = options.transport || $.fn.select2.ajaxDefaults.transport,
433 type: options.type || 'GET', // set type of request (GET or POST)
434 cache: options.cache || false,
435 jsonpCallback: options.jsonpCallback||undefined,
436 dataType: options.dataType||"json"
445 if (options.params) {
446 if ($.isFunction(options.params)) {
447 $.extend(params, options.params.call(self));
449 $.extend(params, options.params);
455 dataType: options.dataType,
459 var results = options.results(data, query.page);
471 * @param options object containing configuration parameters. The options parameter can either be an array or an
482 function local(options) {
483 var data = options, // data elements
594 * two options have to be defined in order for the tokenizer to work.
673 // prepare options
873 // these options are not allowed when attached to a select because they are picked up off the element itself
947 throw "tags specified as both an attribute 'data-select2-tags' and in options of Select2 " + opts.element.attr("id");
987 // this is needed because inside val() we construct choices from options and there id is hardcoded
1774 selectHighlighted: function (options) {
1785 this.onSelect(data, options);
1786 } else if (options && options.noFocus) {
2339 onSelect: function (data, options) {
2354 if ((!options || !options.noFocus) && this.opts.shouldFocusInput(this)) {
2879 onSelect: function (data, options) {
2926 if (!options || !options.noFocus)