desmy-react
Version:
Introducing an easy-to-use, lightning-fast React.js component that streamlines your development process. Our solution prioritizes simplicity, speed, and optimization, making it a breeze to build projects in React.
81 lines (79 loc) • 1.93 kB
TypeScript
import { Component } from 'react';
interface DataItem {
[key: string]: any;
}
interface ReadTableProps {
headers: string[];
datalist: {
meta: {
count: number;
current_page: number;
next_page: number | null;
total: number;
from: number;
to: number;
last_page: number;
per_page: number;
};
links: {
first: string | null;
last: string | null;
};
next: string | null;
previous: string | null;
count: number;
data: any[];
};
reader: {
sheet_name: string;
url?: string;
title?: string;
token?: string;
template_url?: string;
key_name?: string;
ui: {
label?: string;
icon?: string;
};
};
onClose?: () => void;
settings: {
url: string;
default_sorted_column: string;
pagination: {
per_page: number;
};
search?: boolean;
filter?: boolean;
header?: {
title: string;
class: string;
hint: string;
};
server_request: {
enable?: boolean;
};
deleteinfo: {
id: string;
};
headers: any[];
columns: any[];
table_data: any[];
};
}
interface ReadTableState {
datalist: DataItem[];
hasRequest: boolean;
show: boolean;
state?: string;
}
declare class ReadTable extends Component<ReadTableProps, ReadTableState> {
customDatatableRef: import('react').RefObject<any>;
constructor(props: ReadTableProps);
clearList: () => void;
handleOnLoaded: (data: any, state: string) => void;
handleOnSubmit: () => void;
handleOnClose: () => void;
render(): import("react/jsx-runtime").JSX.Element;
}
export default ReadTable;