cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper V
Helper V

Gallery Item Background Color

I am trying to replicate the following color in this image and I can only change the entire gallery background color instead of just at the item level. The ultimate goal is to have the background color change based on the the selected city from a SharePoint drop down list.

 

2018-03-11_23-48-02.jpg

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Memorable Member
Memorable Member

Re: Gallery Item Background Color

Try to make a new app. Insert blank gallery and replace the Items property with

 

[1,2,3,4,5]

 

insert label into the gallery to display value

 

Now insert dropdown and change the dropdown Items to [1,2,3,4,5]

 

Now set Gallery TemplateFill

 

If(Value(Dropdown1.Selected.Value)=ThisItem.Value, Color.Red,Color.White)

 

Play with it and then implement it to your app by replacing data sources

View solution in original post

1 REPLY 1
Highlighted
Memorable Member
Memorable Member

Re: Gallery Item Background Color

Try to make a new app. Insert blank gallery and replace the Items property with

 

[1,2,3,4,5]

 

insert label into the gallery to display value

 

Now insert dropdown and change the dropdown Items to [1,2,3,4,5]

 

Now set Gallery TemplateFill

 

If(Value(Dropdown1.Selected.Value)=ThisItem.Value, Color.Red,Color.White)

 

Play with it and then implement it to your app by replacing data sources

View solution in original post

Helpful resources

Announcements
Check this Out

Announcing

Class of 2020- Season 2

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (10,013)