
Security News
Another Round of TEA Protocol Spam Floods npm, But It’s Not a Worm
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.
@trendmicro/react-table
Advanced tools
React Table
Demo: https://trendmicro-frontend.github.io/react-table
[Friendly reminder] Please migrate to 2+ asap.
npm install --save react @trendmicro/react-table @trendmicro/react-paginations
@trendmicro/react-table and its styles in your application as follows:import TableTemplate, { TableWrapper, TableHeader, TableBody, TableRow, TableCell, TableHeaderCell } from '@trendmicro/react-table';
<TableTemplate
hoverable
useFixedHeader
columns={columns}
data={data}
width={500}
/>
<TableWrapper
columns={columns}
data={data}
width={800}
height={320}
>
{({ cells, data, loader, emptyBody, tableWidth }) => {
return (
<Fragment>
<TableHeader>
<TableRow>
{
cells.map((cell, index) => {
const key = `table_header_cell_${index}`;
const {
title,
width: cellWidth,
} = cell;
return (
<TableHeaderCell
key={key}
width={cellWidth}
>
{ title }
</TableHeaderCell>
);
})
}
</TableRow>
</TableHeader>
<TableBody>
<Scrollbars
style={{
width: tableWidth
}}
>
{
data.map((row, index) => {
const rowKey = `table_row${index}`;
return (
<TableRow key={rowKey}>
{
cells.map((cell, index) => {
const key = `${rowKey}_cell${index}`;
const cellValue = _get(row, cell.dataKey);
return (
<TableCell
key={key}
width={cell.width}
>
{ typeof cell.render === 'function' ? cell.render(cellValue, row, index) : cellValue }
</TableCell>
);
})
}
</TableRow>
);
})
}
</Scrollbars>
</TableBody>
</Fragment>
);
}}
</TableWrapper>
| Name | Type | Default | Description |
|---|---|---|---|
| minimalist | Boolean | false | Specify whether the table should not be bordered. |
| columns | Object[] | [] | The columns config of table, see Column below for details. |
| data | Object[] | [] | Data record array to be rendered. |
| emptyRender | Function | () => { return 'No Data'; } | Empty content render function. |
| emptyText | String | 'No Data' | The text when data is null. |
| height | Number | The height of the table. | |
| loading | Boolean | false | Whether table is loading. |
| loaderRender | Function | Loading content render function. | |
| width | Number(required) | The width of the table. |
| Name | Type | Default | Description |
|---|---|---|---|
| width | Number(required) | The width of the table. |
| Name | Type | Default | Description |
|---|---|---|---|
| width | Number(required) | The width of the table. |
| Name | Type | Default | Description |
|---|---|---|---|
| minimalist | Boolean | false | Specify whether the table should not be bordered. |
| columns | Object[] | [] | The columns config of table, see Column below for details. |
| data | Object[] | [] | Data record array to be rendered. |
| emptyRender | Function | () => { return 'No Data'; } | Empty content render function. |
| emptyText | String | 'No Data' | The text when data is null. |
| height | Number | The height of the table. | |
| hideHeader | Boolean | false | Whether table head is hiden. |
| hoverable | Boolean | false | Whether use row hover style. |
| loading | Boolean | false | Whether table is loading. |
| loaderRender | Function | Loading content render function. | |
| useFixedHeader | Boolean | false | Whether table head is fixed. |
| width | Number(required) | The width of the table. |
| Name | Type | Default | Description |
|---|---|---|---|
| title | React Node or Function(): React Node | Title of this column. | |
| dataKey | String | Display field of the data record. | |
| width | String or Number | 150 | Width of the specific proportion calculation according to the width of the columns. |
| render | Function(value, record, rowIndex) | The render function of cell, has two params: the text of this cell, the record of this row, it's return a react node. |
MIT
FAQs
Trend Micro Components: React Table
We found that @trendmicro/react-table demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.

Security News
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads

Research
/Security News
A malicious Chrome extension posing as an Ethereum wallet steals seed phrases by encoding them into Sui transactions, enabling full wallet takeover.