Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sort arrows should be customizable, both asc and desc #97

Open
mxgit1090 opened this issue Jul 7, 2016 · 2 comments
Open

Sort arrows should be customizable, both asc and desc #97

mxgit1090 opened this issue Jul 7, 2016 · 2 comments

Comments

@mxgit1090
Copy link

mxgit1090 commented Jul 7, 2016

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?

@drvic10k
Copy link
Owner

drvic10k commented Jul 7, 2016

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

@shrimpwagon
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants