Interface: InputValue
June 17, 2023 ยท View on GitHub
@sdeverywhere/runtime / InputValue
Interface: InputValue
Represents a writable model input.
Properties
varId
varId: string
The ID of the associated input variable, as used in SDEverywhere.
get
get: () => number
Type declaration
(): number
Get the current value of the input.
Returns
number
set
set: (value: number) => void
Type declaration
(value): void
Set the input to the given value.
Parameters
| Name | Type |
|---|---|
value | number |
Returns
void
reset
reset: () => void
Type declaration
(): void
Reset the input to its default value.
Returns
void
callbacks
callbacks: InputCallbacks
Callback functions that are called when the input value is changed.