Home Reference Source
import SimpleFloat from './gui/data-items/SimpleFloat.jsx'
public class | source

SimpleFloat

Extends:

gui/data-items/DataItemWithValue.js~DataItemWithValue → SimpleFloat

The purpose of SimpleFloat is to store a precise numerical value. It will write to your tool's XML configuration the text of the value with a decimal. The value it stores and provides through the HTML GUI SDK is however a JavaScript "number". The default value is 0.0.

Constructor Summary

Public Constructor
public

constructor(dataName: string, dataItemProps: object)

Constructor

Public Constructors

public constructor(dataName: string, dataItemProps: object) source

Constructor

Params:

NameTypeAttributeDescription
dataName string

The name of the data item.

dataItemProps object
  • optional

An object of properties such as hidden, disabled, suppressed etc.