div-image-background

Background image.

Parameters

Parameters Description
image_url

string

Required parameter.

Image URL.

The value must be a valid URL.

type

string

Required parameter.

The value must always be image.

alpha

number

Image transparency.

Restriction for the value x: x >= 0.0 && x <= 1.0.

Default value: 1.0.

content_alignment_horizontal

string

Horizontal image alignment.

Possible values: left, center, right, start, end.

Default value: center.

content_alignment_vertical

string

Vertical image alignment.

Possible values: top, center, bottom, baseline.

Default value: center.

filters

array

Image filters.

List of possible values:

  • div-blur
  • div-filter-rtl-mirror
  • preload_required

    bool_int

    Background image must be loaded before the display.

    Default value: false.

    Available platforms: Android.

    scale

    string

    Image scaling.

    Possible values: fill, no_scale, fit, stretch.

    Default value: fill.

    JSON
    {
      type*: "image",
      alpha: "number",
      content_alignment_horizontal: "string",
      content_alignment_vertical: "string",
      filters: [ div-filter, ... ],
      image_url*: "string",
      preload_required: "bool_int",
      scale: "string"
    }