DataDefinition

[ Interface ]

export interface DataDefinition {
    value: any;
    text: string;
    source?: string;
    width?: number;
    height?: number;
    minValue?: number;
    maxValue?: number;
    decimalPlaces?: number;
    step?: number;
    unit?: string;
    resetToLastValidValue?: boolean;
}

Properties

Name

Type

Description

value

any

Value

text

string

Display text for a 'ComboBox', alternative display text for an 'Image'.

source [optional]

string

Web address of an image (only for 'Image')

width [optional]

number

Pixel width of the image (only for 'Image')

height [optional]

number

Pixel height of the image (only for 'Image')

minValue [optional]

number

Min value (only for 'NumericInput', 'SpinboxInput', 'DateTimeInput' and 'TimespanInput')

maxValue [optional]

number

Max. value (only for 'NumericInput', 'SpinboxInput', 'DateTimeInput' and 'TimespanInput')

decimalDigits [optional]

number

Decimal places (only for 'NumericInput' and 'SpinboxInput')

step [optional]

number

Step size (only for 'NumericInput' and 'SpinboxInput')

unit [optional]

string

Unit (only for 'NumericInput' and 'SpinboxInput')

resetToLastValidValue [optional]

boolean

Reset to valid values (only for 'NumericInput', 'SpinboxInput', 'DateTimeInput' and 'TimespanInput').

DataDefinition 1:

Available from 1.8