Skip to content

containerLocation #31

@guroot

Description

@guroot

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions