Number Question

A number question component.

Example:

<NumberQuestion
    question="What is the number PI - three digits after the period"
    solution={3.142}
/>

Open interactive preview

Options:

  • question | string: number question. Default: ''.
  • hintPlacement | string: placement of the hints (either top, left, right, or bottom). Default: 'bottom'.
  • hints | array<string>: hints providing guidance on how to answer the question. Default: [].
  • solution | number: a numeric answer to the problem. Default: none.
  • digits | number: number of digits for which the answer supplied by the student must match the solution to be considered correct. Set to 0 to match as an integer. If set to null it will search for an exact match.. Default: 3.
  • max | number: maximum allowed input value. Default: null.
  • min | number: minimum allowed input value. Default: null.
  • chat | boolean: controls whether the element should have an integrated chat. Default: false.
  • onChange | function: callback which is triggered after the submit action. Default: onChange() {}.

results matching ""

    No results matching ""