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

SimpleHexColor

Extends:

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

The purpose of SimpleHexColor is to store a valid 3-6 character hex value preceded by a hash. It will write to your tool's XML configuration the text of the value. The value it stores and provides through the HTML GUI SDK is however a JavaScript "string". The default value is #ffffff.

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.