You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A package for for exporting array data or table data as excel sheet, csv, pdf and tools for copied data to clipboard or printing data. By using this package you can you can export table data and print table data or copy to clipboard all in one place.
Called when an element is clicks and triggers to open a file dialog
errors
string
Validation Error
data
Array
Read or Converted data
fileInfo
object
Selected file info
FileUpload
Props
Name
Types
Description
Example
acceptType
Function (Required)
File Accept Type
`acceptType={[".pdf"]}`
inputProps
React.HTMLProps (Optional)
Input Props for input field
onChange
Function (Optional)
`onChange={(file:File)=> console.log(file)}`
Exported Options
Name
Types
Description
dragProps
object
Native element props for drag and drop feature
isDragging
boolean
"true" if a file is being dragged
onFileUpload
function
Called when an element is clicks and triggers to open a file dialog
errors
string
Validation Error
fileInfo
object
Selected file info
Migrate to Version 3
In version 3 I added more headless on each component. I update only CopyTextToClipboard, CopyToClipboard, ExportAsCsv, ExportAsExcel, ExportAsPdf, PrintDocument component.
Update this
<AnyOfThoseComponent
data={data}
headers={["Name", "Age", "Something"]}
><button>
Export as Excel
</button></AnyOfThoseComponent>