Format numeric field to star symbol
Format numeric field to star symbol
jalape
Posts: 117Questions: 2Answers: 1
in DataTables
Hi,
I have a numeric table field from 0 to 5 that I would like to display as colored stars based on the value: 0 no colored stars and 5 all colored stars. I find information for Excel but I don't know how to apply it in Datatable Editor.
Any ideas?
Thanks
Replies
See if this data rendering example helps.
Kevin
If you are using Editor then you will want to do something like this checkbox demo to update the number of stars.
Kevin
Thanks Kevin for answering.
I think that by joining parts of each example I can give the format I need.
In the Editor, it would be nice if it handled icons instead of numbers. I have found a Bootstrap example that I hope I can adapt.
Bootstrap Star Rating
https://github.com/kartik-v/bootstrap-star-rating
Yes, I can see that being a really nice interface. To integrate that into Editor you'd need to create a field type plug-in for it.
Allan
Thanks Allan,
I get to work with this.