Contents

Fill

The object for setting a fill type and attachment for a component’s background fill.

Declaration

object Fill

Properties

NameTypeDescription
type Requiredstring

The type of fill to apply.

attachmentstring

Indicates how the fill behaves when a person scrolls.

Valid values:

  • scroll (default): The fill scrolls along with its component.

  • fixed: The fill stays at a fixed position within the viewport.

Mentioned in

Discussion

This is an abstract definition. Don’t use this object type directly; use only the objects that extend Fill, for example GradientFill, ImageFill, and VideoFill.

See Also

Backgrounds for Components