UI Component Reference - v2.63.2
    Preparing search index...

    Interface LoggingDataValue

    interface LoggingDataValue {
        getUnit(): string;
        getValue(): string | number | boolean | null;
        setDecimals(newDecimals: number): void;
        setFactor(newFactor: number): void;
        setUnit(newUnit: string): void;
        toString(): string;
    }
    Index

    Methods

    • Get the values unit of measurement

      Returns string

    • Get the raw data value

      Returns string | number | boolean | null

    • Set the amount of decimals used when using toString

      Parameters

      • newDecimals: number

        amount of decimals to use

      Returns void

    • Set the value factor

      This method only has effect on getFactor

      Parameters

      • newFactor: number

      Returns void

      This method does not change the value. A new query should be created with the new factor

    • Overwrite the unit of measurement. Use in toString

      Parameters

      • newUnit: string

        new unit to use

      Returns void

    • Get a pretty printed version of the data value. This includes the unit and uses the set amount of decimals

      Returns string