glyphicon instead of the image
glyphicon instead of the image
Itamarcus
Posts: 15Questions: 6Answers: 0
I'm implementing this example.
https://datatables.net/examples/api/row_details.html
td.details-control {
background: url('../resources/details_open.png') no-repeat center center;
cursor: pointer;
}
tr.shown td.details-control {
background: url('../resources/details_close.png') no-repeat center center;
}
everything works. I would however like to replace the image of the backgroud properties with a glyphicon. it's possible to do it? as?
thank you
This discussion has been closed.
Answers
You basically need to use pseudo element with the content set to be suitable for the icon you want to show. This post shows how it can be done with FontAwesome. The same basic idea applies if you are using Glyphicon fonts as well.
Allan