File

projects/wms-framework/src/lib/baseframework/UnitValue.ts

Description

UnitValue class

Index

Properties

Constructor

constructor(value: number, unit: Unit)
Parameters :
Name Type Optional
value number No
unit Unit No

Properties

Unit
Type : Unit

Data units

Value
Type : number

Value number

import { Unit } from '../models/enums/Unit';

/**
 * UnitValue class
 *
 * @export
 * @class UnitValue
 * @wType System.Windows.Controls.DataVisualization.UnitValue
 */
export class UnitValue {
  /**
   * Data units
   *
   * @type {Unit}
   * @memberof UnitValue
   */
  Unit: Unit;
  /**
   * Value number
   *
   * @type {number}
   * @memberof UnitValue
   */
  Value: number;

  constructor(value: number, unit: Unit) {
    this.Unit = unit;
    this.Value = value;
  }
}

result-matching ""

    No results matching ""