mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-01 12:42:58 +08:00
Add cache property for select2 ajax options
This commit is contained in:
@@ -56,6 +56,7 @@ $("#e6").select2({
|
||||
ajax: {
|
||||
url: "http://api.rottentomatoes.com/api/public/v1.0/movies.json",
|
||||
dataType: 'jsonp',
|
||||
cache: false,
|
||||
data: function (term, page) {
|
||||
return {
|
||||
q: term,
|
||||
@@ -195,4 +196,4 @@ $("#e8").select2("enable", false);
|
||||
$("#e8").select2("readonly", false);
|
||||
$("#e8").select2('container');
|
||||
$("#e8").select2('onSortStart');
|
||||
$("#e8").select2('onSortEnd');
|
||||
$("#e8").select2('onSortEnd');
|
||||
|
||||
1
select2/select2.d.ts
vendored
1
select2/select2.d.ts
vendored
@@ -26,6 +26,7 @@ interface Select2AjaxOptions {
|
||||
url?: any;
|
||||
dataType?: string;
|
||||
quietMillis?: number;
|
||||
cache?: boolean;
|
||||
data?: (term: string, page: number, context: any) => any;
|
||||
results?: (term: any, page: number, context: any) => any;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user