mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-25 08:06:22 +08:00
Merge pull request #15452 from pajaroblanco/master
Select2 maximumSelectionSize to maximumSelectionLength
This commit is contained in:
4
types/select2/index.d.ts
vendored
4
types/select2/index.d.ts
vendored
@@ -44,7 +44,7 @@ interface Select2Options {
|
||||
minimumInputLength?: number;
|
||||
maximumInputLength?: number;
|
||||
minimumResultsForSearch?: number;
|
||||
maximumSelectionSize?: number;
|
||||
maximumSelectionLength?: number;
|
||||
placeholder?: string | IdTextPair;
|
||||
separator?: string;
|
||||
allowClear?: boolean;
|
||||
@@ -211,4 +211,4 @@ declare class Select2 {
|
||||
$selection: JQuery;
|
||||
$results: JQuery;
|
||||
options: {options: Select2Options};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ $("#e5").select2({
|
||||
}
|
||||
});
|
||||
|
||||
$("#e19").select2({ maximumSelectionSize: 3 });
|
||||
$("#e19").select2({ maximumSelectionLength: 3 });
|
||||
$("#e10").select2({
|
||||
data: [{ id: 0, text: 'enhancement' }, { id: 1, text: 'bug' }, { id: 2, text: 'duplicate' }, { id: 3, text: 'invalid' }, { id: 4, text: 'wontfix' }]
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user