0.9.4 • Published 6 months ago
@types/multiselect v0.9.4
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
// Type definitions for multiselect 0.9
// Project: https://github.com/lou/multi-select
// Definitions by: nagamejun <https://github.com/nagamejun>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <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: Thu, 08 Jul 2021 18:51:05 GMT
- Dependencies: @types/jquery
- Global values: none
Credits
These definitions were written by nagamejun.