lucid-ui
Version:
A UI component library from AppNexus.
148 lines (147 loc) • 4.07 kB
TypeScript
import React from 'react';
import { IThProps, ITableProps } from '../Table/Table';
interface IDataTableProps extends ITableProps, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> {
data: object[];
emptyCellText: string;
isActionable: boolean;
isFullWidth?: boolean;
isLoading?: boolean;
isSelectable: boolean;
anchorMessage?: boolean;
style?: object;
minRows: number;
onRowClick: any;
onSelect: any;
onSelectAll: any;
onSort: any;
hasFixedHeader: boolean;
fixedColumnCount: number;
fixedRowHeight?: number;
truncateContent?: boolean;
Column: any;
ColumnGroup: any;
onResize?: any;
}
export declare const DataTable: {
(props: IDataTableProps): JSX.Element;
displayName: string;
propTypes: {
className: any;
data: any;
emptyCellText: any;
isActionable: any;
isFullWidth: any;
isLoading: any;
isSelectable: any;
anchorMessage: any;
style: any;
minRows: any;
onRowClick: any;
onSelect: any;
onSelectAll: any;
onSort: any;
hasFixedHeader: any;
fixedColumnCount: any;
fixedRowHeight: any;
truncateContent: any;
Column: any;
ColumnGroup: any;
};
defaultProps: {
emptyCellText: string;
isActionable: boolean;
isSelectable: boolean;
onRowClick: (...args: any[]) => void;
onSelect: (...args: any[]) => void;
onSelectAll: (...args: any[]) => void;
onSort: (...args: any[]) => void;
minRows: number;
hasFixedHeader: boolean;
fixedColumnCount: number;
};
peek: {
description: string;
notes: {
overview: string;
intendedUse: string;
technicalRecommendations: string;
};
categories: string[];
madeFrom: string[];
};
EmptyStateWrapper: {
(props: import("../EmptyStateWrapper/EmptyStateWrapper").IEmptyStateWrapperProps): React.ReactElement<any, string | ((props: any) => React.ReactElement<any, any> | null) | (new (props: any) => React.Component<any, any, any>)>;
_isPrivate: boolean;
peek: {
description: string;
categories: string[];
madeFrom: string[];
};
displayName: string;
defaultProps: {
isEmpty: boolean;
isLoading: boolean;
anchorMessage: boolean;
};
propTypes: {
className: any;
children: any;
isEmpty: any;
isLoading: any;
anchorMessage: any;
Body: any;
Title: any;
};
Body: {
(_props: import("../EmptyStateWrapper/EmptyStateWrapper").IEmptyStateWrapperBodyProps): null;
displayName: string;
peek: {
description: string;
};
propName: string;
};
Title: {
(_props: import("../EmptyStateWrapper/EmptyStateWrapper").IEmptyStateWrapperTitleProps): null;
displayName: string;
peek: {
description: string;
};
propName: string;
};
};
Column: {
(props: IColumnProps): null;
displayName: string;
peek: {
description: string;
};
propTypes: {
field: any;
title: any;
isResizable: any;
};
};
ColumnGroup: {
({ children }: IColumnGroupProps): any;
displayName: string;
peek: {
description: string;
};
propTypes: {
title: any;
};
defaultProps: {
align: string;
};
};
shouldColumnHandleSort(column: any): any;
};
interface IColumnProps extends IThProps {
field: string;
title?: string;
}
interface IColumnGroupProps {
children?: any;
title?: string;
}
export default DataTable;