chestercharles / excel-bootstrap-table-filter

jQuery plugin for an Excel-like table filter dropdown with search, sort and checkboxes
MIT License
67 stars 38 forks source link

Update excel-bootstrap-table-filter.ts #13

Closed sibprojects closed 6 years ago

sibprojects commented 6 years ago

Add updating functional, use like this: $('#table').excelTableFilter({ reload: true });

andebor commented 6 years ago

Your selector didn't work for me as it effectively removed every column heading. I got it working like this:

        if (typeof options.reload !== 'undefined'){
            $(this).find('th').each(function(key,val){
                $(this).find('.dropdown-filter-dropdown').remove();
                $(this).html($(this).text());
            });
        }
chestercharles commented 6 years ago

This pull request still only has changes to the Typescript file - the js needs to be recompiled as well.