A text input element for displaying and editing the numeric value of a ParameterNumber.

Hierarchy (view full)

Constructors

Methods

  • Returns the fixed number of fractional decimal places to show when formatting the number, or –1 when in variable decimal places mode.

    Returns number

    the fixed number of fractional decimal places to show when formatting the number, or –1 when in variable decimal places mode.

  • Sets the fixed number of fractional decimal places to show when formatting the number, or a value of –1 puts this into variable decimal places mode where the number of decimal places depends on the desired number of significant digits. See setSignifDigits.

    Parameters

    • decimalPlaces: number

      the fixed number of fractional decimal places to show when formatting the number, or –1 to have variable number of fractional decimal places.

    Returns NumericControlBase

    this object for chaining setters

  • Returns a minimal string representation of this object, usually giving just identity information like the class name and name of the object.

    For an object whose main purpose is to represent another Printable object, it is recommended to include the result of calling toStringShort on that other object. For example, calling toStringShort() on a DisplayShape might return something like this:

    DisplayShape{polygon:Polygon{'chain3'}}
    

    Returns string

    a minimal string representation of this object.

Generated using TypeDoc