You will also see there are 3 different ways to apply gradients.
- Defining the background color attribute with two colors. A space will separate the two values in the string.
backgroundColor: "#ff0000 #e01484"
- Explicitly defining two background colors with the backgroundColor1 and backgroundColor2 attributes
- Defining a string list of colors to be used as the gradient and a gradient stop attribute to determine the percentage of bleed for each color.
gradientColors:"red blue green", gradientStops: "0.3 0.6 0.9"
All documentation referenced here: