Numeric Output State Variable Reference

Table of contents


Introduction

Numeric output state variables represent user number inputs. Each rendered component will display according to the format specified in the state variable.

Constructor

Syntax

ctl.createPage({
	...,
	stateVarInfo:[
		{type:'numericOutput', ...},
	],
})

Parameters

Note: If the info.id contains a subName (e.g., 'myPage_mySv_kg'), it will be considered a unit specifier. If the Component has the showUnits attribute, the unit abbreviation for the unit subName will be displayed after the number.


Instance methods

Inherited methods

Note: The component() method returns a NumOutputSvCmp.


Instance properties

Inherited properties


fmt

A NumFmt instance specifies the desired numeric format and limits.

Value

A NumFmt instance.


max

The maximum valid value. Sets/gets fmt.max.

Value

A Number.


min

The minimum valid value. Sets/gets fmt.min.

Value

A Number.


isNumber

Always true for numericInput.

Value

A Boolean.


isUnit

True if the state variable has a unit subName.

Value

A Boolean.


unit

The first subName. For example, 'kg' if the state variable ID is 'myPage_mySv_kg'.

Value

A String.


Component attributes

Inherited attributes


DOM element properties