bootstrap-sortable
bootstrap-sortable copied to clipboard
Sort arrows should be customizable, both asc and desc
I am using the module to render the table. I use font-awesome as the arrow icons of the sort header. In the code, the default way to change the asc/desc icon is adding and removing the class "up" and "down" I am suggesting that the following current usage:
$.bootstrapSortable({
sign: "fa fa-sort"
})
can be improved as the following:
$.bootstrapSortable({
sign: {
"asc": "fa fa-sort-asc",
"desc": "fa fa-sort-desc"
}
});
On this way the arrows can be customized more easily Is it the good way to do so?
that would be possible, but please try this, if it works for you: https://astronautweb.co/snippet/font-awesome/
+1
Would also be nice to have an up/down arrow on all sortable columns to show users that the headers are clickable for sorting purposes.