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

SimpleInt

Extends:

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

The purpose of SimpleInt is to store an imprecise numerical value. It will write to your tool's XML configuration the text of the value without a decimal. The value it stores and provides through the HTML GUI SDK is however a JavaScript "number". The default value is 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.