bootstrap-sortable icon indicating copy to clipboard operation
bootstrap-sortable copied to clipboard

Sort arrows should be customizable, both asc and desc

Open mxgit1090 opened this issue 8 years ago • 2 comments

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?

mxgit1090 avatar Jul 07 '16 03:07 mxgit1090

that would be possible, but please try this, if it works for you: https://astronautweb.co/snippet/font-awesome/

drvic10k avatar Jul 07 '16 05:07 drvic10k

+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.

shrimpwagon avatar Sep 17 '16 21:09 shrimpwagon