Releases: isg-software/tablesorter-pagercontrols
v1.6.0
- Introduced Aria-Labels to the pager buttons for better accessibility
- new option
buttonLabelClass
- Default CSS now contains
flipLeft
androtateLeft
classes which both can be used as values for the newbuttonLabelClass
option if the buttonLabels for the left buttons (first/prev) are in fact right-pointing. - Updated the template
triangleIcons
to use the same right-pointing arrow icon for all buttons and flip the left buttons using the aforementioned options and class. Old template conserved astriangleIconsOld
.
new options forcePager and pagerOptions
Introduced two new options:
forcePager
disabled the checking for a minimum table size,pagerOptions
lets you specify further options to pass through to the (internally called) tablesorterPager() plug-in.
These were added with the aim to support Ajax Pagers, but might have other useful applications as well.
Fix for short tables
The option classTableWrapper
is now also applied to tables shorter than the minimum page size, i.e. to short tables that don't get equipped with a pager.
Reason: This option may e.g. be used to enable locally scrolling tables (the fullsize-scrolling example has also been updated to demonstrate this), and such features should always be applied, not only to larger tables with a pager.
scrolling template, classTableWrapper option
- FIX: Default value for
classInnerWrapper
should have beennull
as documented, but wasn't. - NEW: Option
classTableWrapper
added. - NEW: Template
scrolling
supports wide, overflowing tables and equips them with horizontal scrollbar which only scrolls the table itself, while the rest of the page including the pager buttons stay put.
Bugfix
Fixed: When reloading a page and the pager restored the previously selected page, the plug-in would nonetheless always disable the back buttons even if not the first page was selected.
new template: tablewidth
While the "fullwidth" template required any table to span the whole page width (100% width), the new "tablewidth" template addresses tables that may be narrower than the page and aligns the controls with the table.
Varargs call
To simplify the application of templates (introduced in v1.1.0) varargs support has been added: You may now pass more than one argument, each being an object holding options. All these options will be merged internally.
The examples using templates (e.g. "fullwidth") have been updated: The user doesn't have to apply $.extend
manually any more, it's now called internally for any argument.
added controlsOutput pattern and templates
- New option
controlsOutput
for rearranging the controls (buttons, display, size select). - New
fullwidth
template is making use of this option. - New
triangleButtons
template.
Patch for argument-less call
The argument (object with options) is supposed to be optional, yet v1.0.0 threw an exception if no argument was given. Fixed and added an example page for this case.