From 3e96df9072013b59b4e2f0ad979d493c13631de6 Mon Sep 17 00:00:00 2001 From: Jon Date: Sun, 29 Sep 2024 03:56:28 +0930 Subject: [PATCH] docs(component): Add JSDoc for Table ref: #1 nofusscomputing/centurion_erp#248 nofusscomputing/centurion_erp#307 nofusscomputing/centurion_erp#319 --- src/components/Table.jsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/components/Table.jsx b/src/components/Table.jsx index 379ea62..6c61bdc 100644 --- a/src/components/Table.jsx +++ b/src/components/Table.jsx @@ -6,7 +6,14 @@ import FieldData from "../functions/FieldData"; import TextField from "./form/Textfield"; - +/** + * Create a Table with pagination + * + * @param {{String, Function}} param0 Object for table + * @param data_url_path url where the data will be fetched + * @param callback function that will be passed value `data.name` + * @returns + */ const Table = ({ data_url_path, callback = null