Number Question

A number question component.


    question="What is the number PI - three digits after the period"

Open interactive preview


  • question | (string|node): number question. Default: ''.
  • hintPlacement | string: placement of the hints (either top, left, right, or bottom). Default: 'top'.
  • hints | array<string>: hints providing guidance on how to answer the question. Default: [].
  • feedback | boolean: controls whether to display feedback buttons. Default: false.
  • 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.
  • provideFeedback | boolean: indicates whether feedback including the correct answer should be displayed after learners submit their answers. Default: true.
  • disableSubmitNotification | boolean: controls whether to disable submission notifications. Default: false.
  • chat | boolean: controls whether the element should have an integrated chat. Default: false.
  • style | object: CSS inline styles. Default: {}.
  • onChange | function: callback which is triggered after the value of the number field changes; receives the current value as its sole argument. Default: onChange() {}.
  • onSubmit | function: callback invoked when answer is submitted; has as first parameter a boolean indicating whether the answer was correctly anwered (if applicable, null otherwise) and the supplied answer as the second parameter. Default: onSubmit() {}.

results matching ""

    No results matching ""