Kyslik / column-sortable

Package for handling column sorting in Laravel 5/6/7/8
MIT License
641 stars 105 forks source link

Use bootstrap icons instead of fontawesome #220

Open ritterg opened 2 months ago

ritterg commented 2 months ago

I use bootstrap icons (https://icons.getbootstrap.com) in my project and don't want to add Font Awesome just for the sort icons.

The problem is that a passable equivalent to the default "fa-sort" in bootstrap is called "bi bi-arrow-down-up", so adding "-up" and "-down" doesn't work.

My solution so far add an "alias" for "bi-arrow-down-up" in css like this:

.bi-arrow::before {
    content: "\f127";
}

Now I can use "bi bi-arrow" as default icon and adding "-up" and "-down" works as expected.