updated docs
This commit is contained in:
37
web_services/web-controllers/app/test/list2/page.tsx
Normal file
37
web_services/web-controllers/app/test/list2/page.tsx
Normal file
@@ -0,0 +1,37 @@
|
||||
'use server';
|
||||
import React from "react";
|
||||
import TableComponent from "@/components/mutual/tableView/FullTableComp/component";
|
||||
|
||||
const TestPage = () => {
|
||||
const baseUrl = "http://localhost:3000/api/tst";
|
||||
const translations = {
|
||||
firstName: "First Name",
|
||||
lastName: "Last Name",
|
||||
email: "Email",
|
||||
phoneNumber: "Phone Number",
|
||||
country: "Country",
|
||||
description: "Description",
|
||||
isDeleted: "Is Deleted",
|
||||
isConfirmed: "Is Confirmed",
|
||||
createdAt: "Created At",
|
||||
updatedAt: "Updated At",
|
||||
}
|
||||
const columns = [
|
||||
"firstName",
|
||||
"lastName",
|
||||
"email",
|
||||
"phoneNumber",
|
||||
"country",
|
||||
"description",
|
||||
"isDeleted",
|
||||
"isConfirmed",
|
||||
"createdAt",
|
||||
"updatedAt",
|
||||
]
|
||||
const initPaginationDefault = { page: 1, size: 10, orderFields: [], orderTypes: [], query: {} }
|
||||
return (
|
||||
<TableComponent baseUrl={baseUrl} translations={translations} columns={columns} initPagination={initPaginationDefault} />
|
||||
);
|
||||
}
|
||||
|
||||
export default TestPage;
|
||||
Reference in New Issue
Block a user