npm.io
0.9.4 • Published 2 years ago

@types/multiselect

Licence
MIT
Version
0.9.4
Deps
1
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

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.