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

How can I change the arrow PNG color when a column is sorted? #7334

Open
ivan-ortega-grifols opened this issue May 15, 2024 · 2 comments
Open
Labels
awaiting reply Issues that are awaiting reply, will be closed if there is no any response in 7 days. help-wanted Issues we need or would love help from the community to resolve.

Comments

@ivan-ortega-grifols
Copy link

Description

I want to know if it is possible to change the little blue triangles used when a column is sorted without overwirtting it through CSS.

I'm refering to this one (e.g.):

.bootstrap-table .fixed-table-container .table tfoot th .asc, .bootstrap-table .fixed-table-container .table thead th .asc {
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAAZ0lEQVQ4y2NgGLKgquEuFxBPAGI2ahhWCsS/gDibUoO0gPgxEP8H4ttArEyuQYxAPBdqEAxPBImTY5gjEL9DM+wTENuQahAvEO9DMwiGdwAxOymGJQLxTyD+jgWDxCMZRsEoGAVoAADeemwtPcZI2wAAAABJRU5ErkJggg==);
}

Example(s)

No response

@ivan-ortega-grifols ivan-ortega-grifols added the help-wanted Issues we need or would love help from the community to resolve. label May 15, 2024
@UtechtDustin
Copy link
Collaborator

As you already found out, the image is within the CSS, so you can't configure it.
But you can overwrite it through you're own CSS, but you wrote you don't want to do that. What is the reason for that ?

@UtechtDustin UtechtDustin added the awaiting reply Issues that are awaiting reply, will be closed if there is no any response in 7 days. label May 26, 2024
@ivan-ortega-grifols
Copy link
Author

ivan-ortega-grifols commented May 27, 2024

Well, basically is because I prefer to mantain my CSS as simple as I can; and I'm delighted with your option to customize the datatable buttos (data-buttons-class="my-css-classes") and I was wondering why we're not doing the same with the sort icons (with something like "data-sort-icon-up" and "data-sort-icon-down" and the caret PNG is only used by default) It makes sense for you?

Thank you so much for your attention and for considering my request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting reply Issues that are awaiting reply, will be closed if there is no any response in 7 days. help-wanted Issues we need or would love help from the community to resolve.
Projects
None yet
Development

No branches or pull requests

2 participants