jQuery.FilterTable
jQuery.FilterTable copied to clipboard
containerLocation
Thanks for the plugin.
A simple enhancement would be nice. Adding a location to append it.
[...]
var defaults = { // start off with some default settings
autofocus: false, // make the filter input field autofocused (not recommended for accessibility)
callback: null, // callback function: function(term, table){}
containerClass: 'filter-table', // class to apply to the container
containerLocation : null, // element to append the container
[...]
if (settings.containerLocation) {
settings.containerLocation.append(container); /* Append to element */
} else {
t.before(container); /* Append before table (default) */
}
Regards,
Jonathan Fleury