DataTables 1.9 beta 1
DataTables 1.9 beta 1
It is with great pleasure that I announce the release of DataTables 1.9 beta 1. After two weeks of intensive work on DataTables 1.9 (and a good deal of planning beforehand), I'm really pleased with the results, and I hope you will be as well! There is no magical leaps forward here, it is all evolutionary, but there is a lot that will make DataTables a lot easier to work with.
What's new: http://datatables.net/new/1.9
Upgrade notes: http://datatables.net/upgrade/1.9
Package download: http://datatables.net/releases/DataTables-1.9.0.beta.1.zip
IMPORTANT: Note that there is, out of necessity, one change that will likely require you to update your pagination CSS for DataTables if you are upgrading from a previous version. Please refer to the upgrade notes for further information.
There are three major new features that have me really excited about this release.
1. A new API method called "$". As you might guess this acts just like the jQuery function, with the selector that you provide acting on the elements that are in the table body. This is a lot like fnGetNodes but a lot more flexible and much easier to use. Have a look at the selectable rows demo ( http://datatables.net/beta/1.9/examples/api/select_row.html ) to see how easy this makes working with elements in the table. With $ you can now access and manipulate table elements in a DataTable as you would with other elements on the page.
2. Accessibility: A lot of work has been put into DataTables to ensure that it is accessible to users who might use alternative access methods such as screen readers. A combination between good mark-up, tab accessible elements and WAI-ARIA attributes means that all controls in a DataTable can now be used with a only keyboard. Try tabbing around a table and using the return key!
3. Documentation: As part of the work I've done to completely reorganise the internals of DataTables, I've updated all function comments to work with the wonderful JSDoc and made the documentation complete internally. As such, DataTables can now be automatically documented. This documentation is available offline if you need it (as part of the download package) and here on this site: http://datatables.net/docs/DataTables/ . This will prove particularly useful for plug-in developers now that the settings object and all other DataTables internals are fully documented!
Other new features include the ability to set defaults, optimisations in the sorting algorithm and the ability to define multiple column sorting for columns by default. Check out the "what's new" page for full details: http://datatables.net/new/1.9 .
Along with backwards compatibility, one of the things I wasn't going to sacrifice with this release was file size. Although the unminified file is significantly larger than before, due to the extensive documentation comments, the minified file is actually smaller than v1.8.2, coming in at just under 70KB. This is thanks to the new internal structure, sensible code updates and improvements in Closure Compiler.
This release also sets the groundwork for the next major release, which will be a lot more modular, so you could potentially select what features you want, and not have the others, reducing file size significantly.
If you have any issues with the new release or upgrading from a previous version, please post your message in a new thread so we can keep track of individual issues.
Finally, please consider supporting continued DataTables development and support by making a donation to the project :-)