background()
Sets the background color or gradient.
background(
background: BindingOrValue<UIColor.BackgroundType | undefined>,
): this;
Parameters
- background — A UIColor, UIColor.Gradient, UIColor.MappedValue, or color name string.
Return value
The builder instance for chaining.
Related
class ElementBuilder abstractstatic
An abstract base class for UI element builders.
