mirror of
https://github.com/DataTables/DataTables.git
synced 2025-01-30 23:52:11 +01:00
Allan Jardine
3ab5af5ff5
New: Rewrite of how pagination is handled to make it hugely more
flexible and simple to actually use. New: Two additional built-in pagination types: 'simple_numbers' and 'full'. Update: 'two_buttons' type pagination (previous default) renamed to 'simple'. New: Default pagination type is now 'simple_numbers'. New: Introducing renderers to DataTables (something that will play an important part moving forward). New: Simplified pagination button classes to simply: * "sPageButton": "paginate_button" * "sPageButtonActive": "current" * "sPageButtonDisabled": "disabled" - The basis for this commit is a restructuring of how pagination plug-ins work in DataTables, whereby the pagination plug-in simply returns an array of button types which should be shown. These are then actually displayed by the renderer. This seperates the logic for which buttons to show from the display logic, making it much easier, both to customise which buttons will be shown, and for integration plug-ins to customise the display of the buttons (since they don't need to replicate the button calculation logic). This change allows us to introduce two new built-in pagination types to DataTables with minimal size cost. Indeed, this change as a whole reduces the compressed DataTables size by 2.5K (additional functionality, simpler and smaller - what's not to like!?). - Pagination button classes in DataTables were a mess before, with different classes used for the two built in types, with the additional complexity of only one of the defined class options being used, rather than concatinating the classes based on the type. This was bonkers and a barrier to new users styling the form as they wanted. Reducing to just three class options, and having the active and disabled options added to the base class makes it MUCH simpiler. This could hit backwards compatiblity for those who had styled the mad old style, but it would have been crazy to keep it while writing the rest.
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%