1.4.0 • Published 27 days ago

@types/datatables.net-select v1.4.0

Weekly downloads
6,700
License
MIT
Repository
-
Last release
27 days ago

Installation

npm install --save @types/datatables.net-select

Summary

This package contains type definitions for datatables.net-select (https://datatables.net/extensions/select/).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/datatables.net-select.

index.d.ts

// Type definitions for datatables.net-select 1.2
// Project: https://datatables.net/extensions/select/, https://datatables.net
// Definitions by: Jared Szechy <https://github.com/szechyjs>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.4

/// <reference types="jquery" />
/// <reference types="datatables.net"/>

declare namespace DataTables {
    interface Settings {
        /*
         * Select extension options
         */
        select?: boolean | string | SelectSettings | undefined;
    }

    interface SelectSettings {
        /*
         * Indicate if the selected items will be removed when clicking outside of the table
         */
        blurable?: boolean | undefined;

        /*
         * Set the class name that will be applied to selected items
         */
        className?: string | undefined;

        /*
         * Enable / disable the display for item selection information in the table summary
         */
        info?: boolean | undefined;

        /*
         * Set which table items to select (rows, columns or cells)
         */
        items?: string | undefined;

        /*
         * Set the element selector used for mouse event capture to select items
         */
        selector?: string | undefined;

        /*
         * Set the selection style for end user interaction with the table
         */
        style?: "api" | "single" | "multi" | "os" | "multi+shift" | undefined;
    }

    interface Api {
        select: {
          /*
          * Get the current selection style applied to the table
          */
          style(): string;
          /*
          * Set the table's selection style
          */
          style(s: "api" | "single" | "multi" | "os"): Api;
        };
    }

    interface RowMethods {
      /**
       * Select a row
       */
      select(): Api;
      /**
       * Deselect a row
       */
      deselect(): Api;
    }

    interface RowsMethods {
      /**
       * Select multiple rows
       */
      select(): Api;
      /**
       * Deselect a row
       */
      deselect(): Api;
    }

    interface CellMethods {
        /**
         * Select cell
         */
        select(): Api;

        /**
         * Deselect a cell
         */
        deselect(): Api;
    }

    interface CellsMethods {
        /**
         * Select multiple cells
         */
        select(): Api;

        /**
         * Deselect cells
         */
        deselect(): Api;
    }
}

Additional Details

Credits

These definitions were written by Jared Szechy.

1.4.0

27 days ago

1.2.8

7 months ago

1.2.9

7 months ago

1.2.10

6 months ago

1.2.7

3 years ago

1.2.6

5 years ago

1.2.5

5 years ago

1.2.4

6 years ago

1.2.3

6 years ago

1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago