Comments (4)
Sorry for this late reply. This seems to be an issue related to bootstrap-table. Please ask your question on their page again.
from tableexport.jquery.plugin.
Just to confirm, in the tableexport.js file, I see that the proper option for download is being passed into the file from the bootstrap-table-export.js file, in this case 'json' in the image shared below . Somewhere in the tableexport.js file the code is defaulting to the defaults.format of formats: ["xlsx", "csv", "txt"],
at around line 153. Could you explain why this isn't from functionality in tableexport.js when it looks like it's receiving the correct file type from the bootstrap table?
My expectation is that filetype would be determined from the type property but it looks like it's pulling it from the formats array property instead, thanks.
from tableexport.jquery.plugin.
Your expectation is fulfilled: in line 244 of tableexport.js you will find the statement $.extend(true, defaults, options);
, which ensures that the values defined in the passed options parameter overwrite the corresponding values of the defaults object. The following code will then only work with the defaults object. Thus the passed format type is taken over as expected.
FYI, the three buttons that appear at the bottom of your table are not displayed by the Tableexport plugin. All the UI stuff you observe is provided by the bootstrap table export.
from tableexport.jquery.plugin.
Thank you for the explanation. With this, I was able to see what I was doing incorrectly. It was an issue with my infrastructure and how I was referencing the plugin. Thank you for your time, now to get the plugin to working with XLSX 😁
from tableexport.jquery.plugin.
Related Issues (20)
- Use exceljs for export excel HOT 1
- Export as xlsx file HOT 1
- excel font family/size HOT 2
- Korean pdf output is broken (UTF-8) HOT 4
- 表格导出excel 如果有单元格变色,会非常卡顿 HOT 10
- Need auto cell width when export to excel
- <meta> not in <head> in MS-Excel exported file HOT 1
- BOM in CSV HOT 3
- Indian Currency Not Showing In Pdf Export HOT 1
- Export strips cell content with number and leading "0" HOT 2
- excel thin border
- Export to PDF with images, control size of image? HOT 1
- Add composer.json and add package to packagist HOT 4
- Problem when exporting to excel, <thead> does not keep empty space and changes it to 0. HOT 1
- How to add fields at the beginning or end in a table export to Excel. HOT 1
- jspdf.umd.min.js.map not found
- ...
- pdfmake - table column width to automatically adjust to cell content HOT 2
- pdfmake - text alignments for table cell HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tableexport.jquery.plugin.