jQuery.FilterTable icon indicating copy to clipboard operation
jQuery.FilterTable copied to clipboard

containerLocation

Open guroot opened this issue 10 years ago • 0 comments

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

guroot avatar Feb 24 '15 19:02 guroot