Transparent sort icons
Transparent sort icons
sskopnik
Posts: 3Questions: 0Answers: 0
P l e a s e ! Can you make the background of default arrow icons for sorting transparent?
Think, al lot of people are using none white backgrounds. Every time I install a new DataTables release I have to replace them with my customized version.
Of course I can send you my versions, but I think you can change your version in 2 minutes
Thanks
Think, al lot of people are using none white backgrounds. Every time I install a new DataTables release I have to replace them with my customized version.
Of course I can send you my versions, but I think you can change your version in 2 minutes
Thanks
This discussion has been closed.
Replies
Yup - sounds like a reasonable request. I hadn't really intended the default images (or the css for that matter) to be much more than a basic demo when I originally made them, but it does sounds like a good idea to bring this up to a decent standard...
Regards,
Allan
As a workaround, I defined a 'nosort' style with a white background, so it matches the sort icon backgrounds.
I'd like to see DT assign a nosort class when sorting is disabled, to give us a hook for that kind of thing.
There is indeed a method to do this, although there is no default class in DataTables for this. Take a peak at: http://datatables.net/styling/custom_classes#sSortableNone - you'll be able to see that you can assign a class manually to this kind of cell. However, I agree that it would be perhaps more useful to have a default here. I'll add this into the next release.
One other thing to note - in 1.6.x the sorting icons are now png8, and have transparent backgrounds. Although obviously you can use the older gif ones if needed.
Regards,
Allan