search

Class myphysicslab.lab.controls.NumericControl

Provided By
Extends
All Implemented Interfaces

A user interface control for displaying and editing the numeric value of a myphysicslab.lab.util.ParameterNumber.

NumericControl is an extension of myphysicslab.lab.controls.NumericControlBase. NumericControlBase is the function-based version which doesn't take a ParameterNumber but instead has getter and setter functions.

new NumericControl( parameter, textField )

Parameters
parametermyphysicslab.lab.util.ParameterNumber

the ParameterNumber to display and edit

textField(HTMLInputElement|undefined)

the text field to use; if not provided, then a text field is created.

Instance Methods

Instance Properties