mirror of
https://github.com/DataTables/DataTables.git
synced 2025-01-19 12:52:11 +01:00
Allan Jardine
2bd643468b
New: Extend
render
option to use objects allowing different data to be
used for the different data types very easily. - Until now, if you want to use different data for the different data types (I've called these orthogonal data in relations to DataTables) you had to specify a function. That's fine, but it seems a rather clumsy way of just pulling different data out of a source object based on the type. This method allows the data types to be very easily defined with an object, allowing the same rules as `render` normally does (dotted object notation, array notation etc). - For example: $(document).ready(function() { $('#example').dataTable( { columns: [ { data: null, render: { _: 'a', sort: 'c', type: 'c', filter: 'd' } }, { data: 'b' } ], data: [ { 'a': 1, 'b': 2, 'c': 4, 'd': '1' }, { 'a': 3, 'b': 4, 'c': 3, 'd': '3' }, { 'a': 5, 'b': 6, 'c': 2, 'd': '5' }, { 'a': 7, 'b': 8, 'c': 1, 'd': 'allan' } ] } ); } );
Updated: Changing the formatting that DataTables uses for the version numbers to be compatible with semver (http://semver.org/). The impact is minimal (unless you are parsing the version for the final part in dev builds). The change is to use a dash ('-') at the end of the version string for a non-release build, rather than a dot.
This DataTables plugin (v1.9.x) for jQuery was developed out of the desire to allow highly configurable access to HTML tables with advanced access features. For detailed installation, usage and API instructions, please refer to the DataTables web-pages: http://www.datatables.net Questions, feature requests and bug reports (etc) can all be asked on the DataTables forums: http://www.datatables.net/forums/ The DataTables source can be found in the media/js/ directory of this archive. DataTables is released with dual licensing, using the GPL v2 (license-gpl2.txt) and an BSD style license (license-bsd.txt). You may select which of the two licenses you wish to use DataTables under. Please see the corresponding license file for details of these licenses. You are free to use, modify and distribute this software, but all copyright information must remain. If you discover any bugs in DataTables, have any suggestions for improvements or even if you just like using it, please free to get in touch with me: www.datatables.net/contact
Description
DataTables is a table enhancing plug-in for the jQuery Javascript library, adding sorting, paging and filtering abilities to plain HTML tables with minimal effort.
https://datatables.net/
Languages
CSS
77.3%
JavaScript
22.7%