20
Views
2
Comments
Solved
Displaying different images depending what value I get from the database
Question

I have a database with Hotels. Each hotel has its number of stars, it might be from 1 to 5. Now I am getting and displaying this information as a number. I would like to display it as graphic information depending which number is retrieved from the database an image representing the stars is displayed, respectively. So, if it gets 1 - it displays an image of one star, 2 - with two stars and so on. 

How can I do that? 

Champion
Solution

Hi Muslim,

You can refer to it to get the solution to your problem.

https://www.outsystems.com/forge/component-overview/7965/star-rating-react-widget


Cheers,

Amit Jain

Thanks! Works perfect. That's what I was looking for.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.