How to Use datatable with Export data in SPFX?

Toriyama 286 Reputation points
2022-05-01T09:35:50.287+00:00

I already use the datatable, but I am not able to use the option to export from it.
In this link https://datatables.net/extensions/buttons/examples/initialisation/export.html we can see this function.

Here http://reshma-ustad.blogspot.com/2019/12/export-sharepoint-list-data-in.html we have an example, but I couldn't reproduce 100% in my solution without Javascript Framework.

Any suggestion?

Thanks

SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,800 questions
SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,596 questions
{count} votes

1 answer

Sort by: Most helpful
  1. RaytheonXie_MSFT 33,641 Reputation points Microsoft Vendor
    2022-05-02T06:12:52.983+00:00

    Hi @Toriyama
    The first article you provide is used in extension. So the function can not be used in no javascript framework. You need to create an extension to load it. Could you provide more details about the errors in second sample and the steps to reproduce your error for further test?


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.