||3 years ago|
|js||3 years ago|
|.gitattributes||3 years ago|
|.gitignore||3 years ago|
|LICENSE||3 years ago|
|README.md||3 years ago|
|mkplugin.sh||3 years ago|
|tablepress-datatables-colrejigger.php||3 years ago|
allow columns of a Tablepress table to be reordered/resized on the fly in the front end
This project is an extension to the TablePress plug-in (see https://tablepress.org/) for WordPress (https://wordpress.org/). It is not useful without the TablePress plug-in. This project is not part of TablePress, but designed to work with it and extend its capabilities.
Download a release from https://code.studioinfinity.org/glen/tablepress-datatables-colrejigger/releases (as a zip file) and install and activate in your WordPress site like any other extension in zip format.
This extension operates by adding additional parameters to the [table id=NN /] shortcode. For a list of the provided parameters and their meanings, see the source file tablepress-datatables-colrejigger.php. But one quick example should show how simple this is:
[table id=2 datatables_colreorder=true datatables_colresize_resizetable=true /]
This will present table 2 in the default fashion, except that the page viewer will be able to reorder its columns (by dragging headers) and resize its columns (by dragging the boundaries between headers, indicated by the cursor changing shape). The table will change its total width to accommodate the new column sizes after a resize operation.
Note that DataTables ColReorder and DataTables ColResize are not part of this project, but are redistributed with it for convenience, under the respective license terms of each of those packages.
To produce an installable zip file, change directories into a git clone of this repository, and simply execute the command in mkplugin.sh (for example, via
bash mkplugin.sh). Note that currently you must update the version number in the mkplugin.sh command.