I have the following code to recursively create a custom sticky widget from a CSV inside a web plugin.
"x": ( 220 * horizontal ),
"y": ( 220 * vertical )
Regardless of what color I substitute in the backgroundColor property, I cannot get the stickies to generate as that color. They always get created yellow. I have run this same method with the “shape” widget and I get the correct specified background color.
It there some nuanced approach to coloring stickers that I am just overlooking? I have been through the API documentation at least two dozen times.
Best answer by Anthony Roux
It can be a bit confusing but the background color parameter for stickers is different than the one for shapes. You can find it documented here.
In your case you need to replace backgroundColor by stickerBackgroundColor.
This should solve the issue.