Giter Club home page Giter Club logo

Comments (4)

hhurz avatar hhurz commented on August 16, 2024

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.

nvcastelli avatar nvcastelli commented on August 16, 2024

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?
Screen Shot 2023-06-06 at 10 47 20 AM

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.

hhurz avatar hhurz commented on August 16, 2024

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.

nvcastelli avatar nvcastelli commented on August 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.