I have a bootstrap table working fine, with sorting and a number of dynamic attributes such as highlighting when hovering. A particular column displays a number, either 1, 2 or 3, and my goal is to reflect this other than a number, for example an RAG indicator (Red, Amber or Green). I’ve tried toggling classes using warning, danger, success, but they don’t seem to be taken into account, I guess because of the sorting, etc…
My next step was to try to put some inner html and was open to having a dirty solution like calling a 1.png, 2.png and 3.png image, but I can’t get that to work either. I then attempted to get an FA icon with different classes, and same, I fail.
What would be your suggestion to proceed?
This is what I have:
This is what I’d be looking to have:
I would suggest that you could add 3 FA icons and add dynamic attributes to show on a specific condition:
Choose the first cell and add a FA icon
For each FA icon choose Dynamic Attributes and set the ‘Show’ attribute
Set the condition when you want the icon to show
You can style the icons with individual colours as you wish.
To begin with I was struggling because I had both show and hide attributes on items - you couldn’t (and I still don’t think you can) have a mixture on one element.