Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
react-html-table-to-excel
Advanced tools
Small react component for converting and downloading HTML table to Excel file
Provides a client side generation of Excel (.xls) file from HTML table element.
No additional dependencies
npm install --save react-html-table-to-excel
A list of available properties can be found below. These must be passed to the containing ReactHTMLTableToExcel
component.
Property | Type | Description |
---|---|---|
table | string | ID attribute of HTML table element. |
filename | string | Name of Excel file. |
sheet | string | Name of Excel sheet. |
id | string | ID attribute of button element. |
className | string | Class attribute of button element. |
buttonText | string | Button text. |
import React, {Component} from 'react';
import ReactHTMLTableToExcel from 'react-html-table-to-excel';
class Test extends Component {
constructor(props) {
super(props);
}
render() {
return (
<div>
<ReactHTMLTableToExcel
id="test-table-xls-button"
className="download-table-xls-button"
table="table-to-xls"
filename="tablexls"
sheet="tablexls"
buttonText="Download as XLS"/>
<table id="table-to-xls">
<tr>
<th>Firstname</th>
<th>Lastname</th>
<th>Age</th>
</tr>
<tr>
<td>Jill</td>
<td>Smith</td>
<td>50</td>
</tr>
<tr>
<td>Eve</td>
<td>Jackson</td>
<td>94</td>
</tr>
</table>
</div>
);
}
}
export default Test
FAQs
Small react component for converting and downloading HTML table to Excel file
The npm package react-html-table-to-excel receives a total of 2,659 weekly downloads. As such, react-html-table-to-excel popularity was classified as popular.
We found that react-html-table-to-excel demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.