
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
stark-custom-datatable-next
Advanced tools
Customizable datatable for react
Create customizable datatable
npm i stark-custom-datatable-next

Import this component in page where you want to display table content.
import CustomTable from "stark-custom-datatable-next";
import 'bootstrap/dist/css/bootstrap.min.css';
// some code
const rowData = [
{ id: 1, name: 'Sample name', email: 'john.doe@example.com', rowClass:'bgred' },
{ id: 2, name: 'Sample name', email: 'john.doe@example.com' },
{ id: 3, name: 'Sample name', email: 'john.doe@example.com' },
{ id: 4, name: 'Sample name', email: 'john.doe@example.com' },
]
// some code
render() {
return (
<>
<CustomTable
// role (optional:number) : Current user role for role wise column show
role={1}
// columns (required:array) : dispay column , id and label compulsory and one row column with 'id' key required
columns={[
{ id: 'id', label: 'Id', roleAccess: [1], isDisplay: true, columnRender: (col => (<span style={{ fontWeight: 'bold' }}>{col.label}</span>)), render: (row) => { return (<b>{row.name}</b>) } },
{ id: 'name', label: 'Name', roleAccess: [1] },
{ id: 'email', label: 'Email', roleAccess: [3], classes:'bgGray' },
]}
// rows (required:array) : display row data of column
rows={rowData}
// tableClass (optional:String) : to override class of the table
tableClass="table-striped"
// tableContainerClass (optional:String) : to override class of the table wrapper
tableContainerClass=""
// dropdownContainerClass (optional:String) : to override class of the dropdown wrapper
dropdownContainerClass=""
// bulkActions (optional:array) : to add action on table
bulkActions={[
{
actionTitle: 'Change Status',
actionCallback: (e) => { console.log(e) },
},
{
actionTitle: 'Delete',
actionCallback: (e) => { console.log(e) },
}
]}
// showCheckbox (optional:boolean) : to show checkbox as first column
showCheckbox={true}
// showPagination (optional:boolean) : to show pagination of table
showPagination={true}
// paginationProps (optional:Object) : to display page number based on this props
paginationProps={{
totalItems: 5,
itemsPerPage: 5,
activePage: 1, //currentPage
onPageChange:{(changedPage) => {
console.log(changedPage);
}}
}}
// selectedRowItems (optional:array) : to show selected row in table
selectedRowItems={[4]}
// onSelectRowsIndexes (optional:callback) : callback to get selected row ids
onSelectRowsIndexes={(indexes) => {
console.log('indexes', indexes); // eslint-disable-line
}}
// emptyRender (optional:callback) : callback to override empty table caption
emptyRender={() => <h4>Data not exist</h4>}
// emptyRender (optional:String) : override label of action button
bulkActionsLabel="Apply"
/>
</>
)
}
FAQs
**Customizable datatable for react**
We found that stark-custom-datatable-next demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.