Giter VIP home page Giter VIP logo

fmxlsx.js's Introduction

FMXLSX.js

Export JSON to ToExcel CSV/XLS/XLSX/Txt FMXLSX is a jQuery dependent JavaScript library to download or create Excel CSV/XLS/XLSX/Text spreadsheets using JavaScript (JSON).

This library is fully dynamic and flexible we can merge and set styling on each cell. Useful for creating an online JSON/JS Objects To (CSV/XLS/XLSX/Text spreadsheet) converter.

The plugin uses jQuery ,js-xlsx: Spreadsheet parser and writer FileSaver.js: HTML5 saveAs() FileSaver implementation

installation:

<script src=".../plugins/FMXLSX/FMXLSX.js'" ></script>
                var data = [
                  { "Name": "Otto Clay", "Age": 25, "Country": 1, "Address": "Ap #897-1459 Quam Avenue", "Married": false },
                  { "Name": "Connor Johnston", "Age": 45, "Country": 2, "Address": "Ap #370-4647 Dis Av.", "Married": true },
                  { "Name": "Lacey Hess", "Age": 29, "Country": 3, "Address": "Ap #365-8835 Integer St.", "Married": false },
                  { "Name": "Timothy Henson", "Age": 12, "Country": 1, "Address": "911-5143 Luctus Ave", "Married": true },
                  { "Name": "Otto Clay", "Age": 1, "Country": 1, "Address": "Ap #897-1459 Quam Avenue", "Married": false },
                  { "Name": "Connor Johnston", "Age": 45, "Country": 2, "Address": "Ap #370-4647 Dis Av.", "Married": true },
                  { "Name": "Lacey Hess", "Age": 29, "Country": 3, "Address": "Ap #365-8835 Integer St.", "Married": false }];
                  var fileOptions = [
                      {
                          "sheetName": "Sheetname",
                         
                      }
                  ];
                  function save() {
                      var options = {
                          fileName: "Export Sheet",
                          fileType: "xlsx",
                          extension: ".xlsx",
                      };
                  fileColumns=[{ "Name": "Name", "Age": "Age", "Country": "Country", "Address": "Address", "Married": "Married" }
                        ];
                      fmxlsx.export(fileOptions,fileColumns,data ,options);
                  }
                  save();

fmxlsx.js's People

Contributors

faramtb avatar

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.