Background

[ Interface ]

export interface Background {
    color: TcHmi.Color | null;
    image: string | null;
    imageWidth: number | null;
    imageWidthUnit: TcHmi.DimensionUnit;
    imageHeight: number | null;
    imageHeightUnit: TcHmi.DimensionUnit;
    imageHorizontalAlignment: TcHmi.HorizontalAlignment;
    imageVerticalAlignment: TcHmi.VerticalAlignment;
    imagePadding: TcHmi.FourSidedCss | null;
}

Properties

Name

Type

Description

color

Color, null

Definition of the color

image

string

Definition of a background image for the background image

imageWidth

number, null

Numerical value of the background width of the background image

imageWidthUnit

TcHmi.DimensionUnit

Unit of the background width of the background image

imageHeight

number, null

Numerical value of the background height of the background image

imageHeightUnit

TcHmi.DimensionUnit

Unit of the background height of the background image

imageHorizontalAlignment

TcHmi.HorizontalAlignment

Horizontal alignment of the background image

imageVerticalAlignment

TcHmi.VerticalAlignment

Vertical alignment of the background image

imagePadding

TcHmi.FourSidedCss, null

Padding of the background image.

Background 1:

Available from 1.8