Extension:DataTables
From MediaWiki.org
|
DataTables Release status: beta |
|||
|---|---|---|---|
| Implementation | Media, Hook | ||
| Description | Adds the jQuery Extension DataTables to MediaWiki | ||
| Author(s) | Daniel Renfro, Allan Jardine (DanielRenfroTalk) | ||
| Last version | 0.1.0 (2011-09-03) | ||
| MediaWiki | 1.17.0+ | ||
| PHP | 5.2.3+ | ||
| License | GPL | ||
| Download | http://ecoliwiki.net/extensions/DataTables-0.1.0.tar.gz | ||
|
|||
|
Check usage (experimental) |
|||
Contents |
[edit] What can this extension do?
Add the jQuery extension DataTables (written by Allan Jardine) to MediaWiki using the ResourceLoader.
[edit] Usage
Once this installation is installed, you can require this module using the resource loader by adding it as a dependency like so:
$myResourceLoaderModule => array( 'scripts' => array( 'js/ext.myExtension.js' ), 'styles' => array( 'css/ext.myExtension.css' ), 'dependencies' => array( 'ext.datatables', ), 'messages' => array( ) );
See the documentation for the ResourceLoader.
You can then have your JavaScript call datatables using the typical call:
$( '#example' ).dataTable();
Please see the excellent documentation of DataTables at http://datatables.net/. There are many examples and this code is quite flexible.
[edit] Download instructions
Download from the link above in the infobox.
[edit] Installation
To install this extension, add the following to LocalSettings.php:
# DataTables require_once( "$IP/extensions/DataTables/DataTables.php" );
[edit] Configuration parameters
None!
[edit] See also
- http://datatables.net DataTables jQuery Extension