@types/selectize 0.12.38 → 0.12.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- selectize/README.md +1 -1
- selectize/index.d.ts +26 -1
- selectize/package.json +4 -3
selectize/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for selectize (https://github.com/brianre
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/selectize.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Thu, 13 Aug 2026 20:11:12 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
|
|
14
14
|
# Credits
|
selectize/index.d.ts
CHANGED
|
@@ -247,7 +247,7 @@ declare namespace Selectize {
|
|
|
247
247
|
*
|
|
248
248
|
* Default: "$order"
|
|
249
249
|
*/
|
|
250
|
-
sortField?: string | { field: string; direction?: "asc" | "desc" | undefined }
|
|
250
|
+
sortField?: string | Array<{ field: string; direction?: "asc" | "desc" | undefined }> | undefined;
|
|
251
251
|
|
|
252
252
|
/**
|
|
253
253
|
* An array of property names to analyze when filtering options.
|
|
@@ -406,6 +406,16 @@ declare namespace Selectize {
|
|
|
406
406
|
|
|
407
407
|
// see https://github.com/brianreavis/selectize.js/blob/master/docs/api.md
|
|
408
408
|
interface IApi<T, U> {
|
|
409
|
+
/**
|
|
410
|
+
* The original input element the control was created from.
|
|
411
|
+
*/
|
|
412
|
+
$input: JQuery;
|
|
413
|
+
|
|
414
|
+
/**
|
|
415
|
+
* The settings the control was initialized with, merged with the defaults.
|
|
416
|
+
*/
|
|
417
|
+
settings: IOptions<T, U>;
|
|
418
|
+
|
|
409
419
|
/**
|
|
410
420
|
* An array of selected values.
|
|
411
421
|
*/
|
|
@@ -475,6 +485,11 @@ declare namespace Selectize {
|
|
|
475
485
|
*/
|
|
476
486
|
addItem(value: T, silent?: boolean): void;
|
|
477
487
|
|
|
488
|
+
/**
|
|
489
|
+
* "Selects" multiple items at once. Adds them to the list at the current caret position.
|
|
490
|
+
*/
|
|
491
|
+
addItems(values: T | T[], silent?: boolean): void;
|
|
492
|
+
|
|
478
493
|
/**
|
|
479
494
|
* Removes the selected item matching the provided value.
|
|
480
495
|
*/
|
|
@@ -500,6 +515,16 @@ declare namespace Selectize {
|
|
|
500
515
|
*/
|
|
501
516
|
addOptionGroup(id: string, data: U): void;
|
|
502
517
|
|
|
518
|
+
/**
|
|
519
|
+
* Removes the existing optgroup identified by the given id.
|
|
520
|
+
*/
|
|
521
|
+
removeOptionGroup(id: string): void;
|
|
522
|
+
|
|
523
|
+
/**
|
|
524
|
+
* Removes all existing optgroups from the control.
|
|
525
|
+
*/
|
|
526
|
+
clearOptionGroups(): void;
|
|
527
|
+
|
|
503
528
|
// Events
|
|
504
529
|
// ------------------------------------------------------------------------------------------------------------
|
|
505
530
|
|
selectize/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/selectize",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.40",
|
|
4
4
|
"description": "TypeScript definitions for selectize",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/selectize",
|
|
6
6
|
"license": "MIT",
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"scripts": {},
|
|
27
27
|
"dependencies": {},
|
|
28
|
-
"
|
|
29
|
-
"
|
|
28
|
+
"peerDependencies": {},
|
|
29
|
+
"typesPublisherContentHash": "933dfa18f205627d1b009095f03a8a0e7b52bf4c27f92e0da20ff7a554706d62",
|
|
30
|
+
"typeScriptVersion": "5.6"
|
|
30
31
|
}
|