eoda-dev / py-tabulator

Shiny bindings for Tabulator JS
https://eoda-dev.github.io/py-tabulator/
MIT License
16 stars 2 forks source link

Add support for xlsx and pdf downloads #16

Open crazycapivara opened 9 months ago

crazycapivara commented 9 months ago

See downloads

j0bekt01 commented 2 months ago

you can do xlsx like this: ui.tags.script(type="text/javascript", src="https://oss.sheetjs.com/sheetjs/xlsx.full.min.js")

async with TabulatorContext("tabulator") as table: table.trigger_download("xlsx", "data.xlsx", {"sheetName":"sheetName"})

crazycapivara commented 2 months ago

@j0bekt01 Yes, this is already implemented with use_sheetjs as shown in this example.

Issue is still open because of the pdf support. Maybe I will split the issues.