Installation
npm install --save @types/multiselect
Summary
This package contains type definitions for multiselect (https://github.com/lou/multi-select).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/multiselect.
index.d.ts
/// <reference types="jquery" />
type Options = Partial<{
afterInit: (...args: any[]) => void;
afterSelect: (...args: any[]) => void;
afterDeselect: (...args: any[]) => void;
selectableHeader: string | HTMLElement;
selectionHeader: string | HTMLElement;
selectableFooter: string | HTMLElement;
selectionFooter: string | HTMLElement;
disabledClass: string;
selectableOptgroup: boolean;
keepOrder: boolean;
dblClick: boolean;
cssClass: string;
}>;
interface AddOption {
value: string;
text: string;
index?: number | undefined;
nested?: string | undefined;
}
type Method = "select_all" | "deselect_all" | "refresh";
interface JQuery {
multiSelect(methodOrOptions?: Method | Options): JQuery;
multiSelect(method: "addOption", addOption: AddOption): JQuery;
multiSelect(method: "select" | "deselect", options?: string | any[]): JQuery;
}
Additional Details
- Last updated: Tue, 07 Nov 2023 0939 GMT
- Dependencies: @types/jquery
Credits
These definitions were written by nagamejun.