Converts numeric values into an array of icons, ideal for ratings.
rt_rating_icons(rating, icon = "star", color = "orange", max_rating = 5)
rating | Number, from cell's value. |
---|---|
icon | String containing the name of the icon to be used. Icons defined with shiny::icon() |
color | String containing color definition in hex format. |
max_rating | Number of maximum rating. |
An array of n icons and a tooltip showing the original value.