MscrmTools / PCF-Controls

Controls using PowerApps Components Framework
GNU General Public License v3.0
83 stars 42 forks source link

Action Button: Dynamically change color through Javascript #166

Closed gavinpollockacora closed 6 months ago

gavinpollockacora commented 6 months ago

Hi - is it possible to access to Color property dynamically rather than through another column or such? I wanted to use the button and for simplicity (as I already have other JS running) dynamically update the color of the button at certain other events in the JS on the form. Is that possible in some way?

Cheers! Gavin

MscrmTools commented 6 months ago

It's only possible if using another text column that you will fill the HTML color you are expecting.