GithubHelp home page GithubHelp logo

jquery_datatables_in_react's Introduction

jQuery Datatables in React

from SOF

There are two projects here. withoutReact shows a basic HTML, CSS, JS with all the features working for reference. withReact is an attempt to get thoese features working in a module.

Notes

This is an attempt to make a working template of using jQuery Datatables in a react app. The following conditions need to be true:

  1. Should not require npm install of bootstrap
  2. All standard extensions should work

Currently 1 is working but most of 2 is not working.

Here's npm suggested install using the builder from datatables.net:

npm install --save jszip  
npm install --save pdfmake  
npm install --save datatables.net-bs 
npm install --save datatables.net-autofill-bs  
npm install --save datatables.net-buttons-bs  
npm install --save datatables.net-colreorder-bs  
npm install --save datatables.net-fixedcolumns-bs  
npm install --save datatables.net-fixedheader-bs  
npm install --save datatables.net-keytable-bs  
npm install --save datatables.net-responsive-bs  
npm install --save datatables.net-rowgroup-bs  
npm install --save datatables.net-rowreorder-bs  
npm install --save datatables.net-scroller-bs  
npm install --save datatables.net-select-bs  

And then the requre...with a note at very bottom that says "Please note that the above is shown for CommonJS modules. If you are using an AMD loader, you do not need to execute the required library (i.e. remove the trailing ())."

require( 'jszip' );  
require( 'pdfmake' );  
require( 'datatables.net-bs' )();  
require( 'datatables.net-autofill-bs' )();  
require( 'datatables.net-buttons-bs' )();  
require( 'datatables.net-buttons/js/buttons.colVis.js' )();  
require( 'datatables.net-buttons/js/buttons.flash.js' )();
require( 'datatables.net-buttons/js/buttons.html5.js' )();  
require( 'datatables.net-buttons/js/buttons.print.js' )();  
require( 'datatables.net-colreorder-bs' )();  
require( 'datatables.net-fixedcolumns-bs' )();  
require( 'datatables.net-fixedheader-bs' )();  
require( 'datatables.net-keytable-bs' )();  
require( 'datatables.net-responsive-bs' )();  
require( 'datatables.net-rowgroup-bs' )();  
require( 'datatables.net-rowreorder-bs' )();  
require( 'datatables.net-scroller-bs' )();  
require( 'datatables.net-select-bs' )();  

Look at the App.js to see what i've changed so far to try to get this version to work. Right now the following work:

  • CSV
  • COPY
  • PRINT
  • Search
  • Scroll
  • Responsive

The following don't work:

  • Excel (won't even populate button)
  • KeyTable
  • AutoFill
  • Select (footer shows 1 row selected but no change in table view)
  • PDF (nothing happens)
  • COPY (works but css/overlay broken)
  • CSS broken (gap between header and table data, header icons missing, default search not on right)

jquery_datatables_in_react's People

Contributors

jtlindsey avatar

Stargazers

 avatar  avatar

Watchers

 avatar  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.