fooplugins / FooTable

jQuery plugin to make HTML tables responsive
https://fooplugins.com/plugins/footable-jquery/
Other
2.13k stars 637 forks source link

How to hide sort icon? #862

Closed nd3w closed 4 years ago

nd3w commented 4 years ago

I have table with four columns. How do I hide the sort icon from a column that doesn't have head title?

nd3w commented 4 years ago

From https://stackoverflow.com/questions/16117490/show-hide-element-with-jquery I use code below. First I use attribute data-sortable and set it to false.

$(document).ready(function() {
    $('.footable').footable();
    $(".footable-sortable[data-sortable='false']").hide();
});
tlorens commented 4 years ago

You're supposed to be able to set . but that doesn't seem to work either. I think documentation is out-dated.