Skip to main content
1-Visitor
June 25, 2020
Solved

Changing Panel background based on an input

  • June 25, 2020
  • 1 reply
  • 1532 views

Hi,

 

I am implementing a workaround for a custom toastr extension, Iam using a Mashup as modal popup with animations using custom css to display the toastr.

I need to change the panel/Mashup color based on an input like to show green when its a success message and red when its a warning. The Input need to passed from another mashup to the toastr mashup.

Toastr mashup contains a panel and label widget., I am using thingworx version 8.5

 

Can anyone please point out a way to change the panel color using a custom input?

Best answer by PaiChung

Not too certain how to affect the panel background potentially css? I imagine you've tried that.

Could make it a dynamic mashup so if you had 3 colors, you have 3 mashups that swap based on value.

I know there used to be a custom 'layer' widget which allowed you to overlay two responsive mashups that would work as well, but I'm not sure if that is available anywhere.

1 reply

PaiChung22-Sapphire IAnswer
22-Sapphire I
June 26, 2020

Not too certain how to affect the panel background potentially css? I imagine you've tried that.

Could make it a dynamic mashup so if you had 3 colors, you have 3 mashups that swap based on value.

I know there used to be a custom 'layer' widget which allowed you to overlay two responsive mashups that would work as well, but I'm not sure if that is available anywhere.

1-Visitor
July 3, 2020

Thank You, I will Try out the same