0.14.11 • Published 6 months ago

@types/reactable v0.14.11

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

Installation

npm install --save @types/reactable

Summary

This package contains type definitions for reactable (https://github.com/abdulrahman-khankan/reactable).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/reactable.

index.d.ts

// Type definitions for reactable 0.14
// Project: https://github.com/abdulrahman-khankan/reactable
// Definitions by: Christoph Spielmann <https://github.com/spielc>, Priscila Moneo <https://github.com/priscila-moneo>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8

import * as React from 'react';

export interface KeyLabelObject {
    key: string;
    label: string;
}

export type ColumnsType = string | KeyLabelObject;

export type SortDirection = 'asc' | 'desc';

export type FilterMethodType = (text: string) => void;

export interface TableComponentProperties<T> {
    children?: React.ReactNode;
    data?: T[] | undefined;
    className?: string | undefined;
    columns?: ColumnsType[] | undefined;
    defaultSort?: { column: string, direction: SortDirection } | undefined;
    id?: string | undefined;
    sortable?: string[] | boolean | undefined;
    sortBy?: boolean | undefined;
    filterable?: string[] | undefined;
    filterBy?: string | undefined;
    onFilter?: FilterMethodType | undefined;
    itemsPerPage?: number | undefined;
    noDataText?: string | undefined;
    pageButtonLimit?: number | undefined;
    currentPage?: number | undefined;
    hideFilterInput?: boolean | undefined;
}

export interface ThProperties {
    children?: React.ReactNode;
    column: string;
    className?: string | undefined;
}

export interface TrProperties<T> {
    children?: React.ReactNode;
    data?: T | undefined;
    className?: string | undefined;
}

export interface TdProperties {
    children?: React.ReactNode;
    column: string;
    value?: any;
    data?: any;
}

export class Table<T> extends React.Component<TableComponentProperties<T>> {
}

export class Thead extends React.Component {
}

export class Th extends React.Component<ThProperties> {
}

export class Tr<T> extends React.Component<TrProperties<T>> {
}

export class Td extends React.Component<TdProperties> {
}

export class Tfoot extends React.Component {
}

Additional Details

  • Last updated: Thu, 14 Oct 2021 13:31:25 GMT
  • Dependencies: @types/react
  • Global values: none

Credits

These definitions were written by Christoph Spielmann, and Priscila Moneo.

0.14.11

6 months ago

0.14.10

7 months ago

0.14.9

7 months ago

0.14.8

3 years ago

0.14.7

3 years ago

0.14.6

5 years ago

0.14.5

5 years ago

0.14.4

5 years ago

0.14.3

6 years ago

0.14.2

6 years ago

0.14.1

7 years ago

0.14.0

7 years ago