@bijvoorbeeldzo/table-component
v0.0.21
Published
The components used by the Bijvoorbeeld Zo team
Downloads
4
Readme
Bijvoorbeeld Zo - Table Component
Example:
import { Table } from "@bijvoorbeeldzo/table-component";
import "@bijvoorbeeldzo/table-component/dist/style.css";
<Table
baseUrl={import.meta.env.VITE_BASE_URL}
connection="BIJVOORBEELDZO_DEV"
queries={{ get: "getEmployeeSchedules", delete: "deleteEmployeeSchedule" }}
indexColumn="id"
title="Users"
description="A list of all the users in your account including their name, title, email and role."
add={{ to: "/add", text: "Add user" }}
edit={{ onClick: (row) => navigate("edit/" + row.id), text: "Edit" }}
deleteText="Delete"
/>