Skip to content

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

@mxgit1090

Description

@mxgit1090

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?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions