0.9.4 • Published 6 months ago

@types/multiselect v0.9.4

Weekly downloads
243
License
MIT
Repository
github
Last release
6 months ago

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.

0.9.4

6 months ago

0.9.3

7 months ago

0.9.2

7 months ago

0.9.1

3 years ago

0.9.0

4 years ago