Function: createInputValue

June 11, 2022 ยท View on GitHub

@sdeverywhere/runtime / createInputValue

Function: createInputValue

createInputValue(varId, defaultValue, initialValue?): InputValue

Create a basic InputValue instance that notifies when a new value is set.

Parameters

NameTypeDescription
varIdstringThe input variable ID, as used in SDEverywhere.
defaultValuenumberThe default value of the input.
initialValue?numberThe inital value of the input; if undefined, will use defaultValue.

Returns

InputValue