div-image-background

Background image.

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"
}

Parameters

ParametersDescription
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.

Default value: center.

content_alignment_vertical

string

Vertical image alignment.

Possible values: top, center, bottom, baseline.

Default value: center.

filters

array

Image filters.

An array must not be empty.

Available platforms: Android, browser.

List of possible values:
  • div-blur
  • image_url

    string

    Required parameter.

    Image URL.

    The value must be a valid URL.

    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.

    Default value: fill.

    type

    string

    Required parameter.

    The value must always be image.

    ParametersDescription
    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.

    Default value: center.

    content_alignment_vertical

    string

    Vertical image alignment.

    Possible values: top, center, bottom, baseline.

    Default value: center.

    filters

    array

    Image filters.

    An array must not be empty.

    Available platforms: Android, browser.

    List of possible values:
  • div-blur
  • image_url

    string

    Required parameter.

    Image URL.

    The value must be a valid URL.

    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.

    Default value: fill.

    type

    string

    Required parameter.

    The value must always be image.