Jump to navigation

Class: NumberEntryPartDisplay

Numbas.display.NumberEntryPartDisplay

Members

(static) cleanStudentAnswer :observable|string

Cleaned-up version of student answer (remove commas and trim whitespace)

Also check for validity and give warnings

Type:
Source:

(static) correctAnswer :observable|number

The correct answer

Type:
Source:

(static) inputHasFocus :observable|boolean

Does the input box have focus?

Type:
Source:

(static) inputHint :observable|string

Some text describing how the student should enter their answer

Type:
Source:

(static) showInputHint :observable|string

Show the input hint?

Type:
Source:

(static) showPreview :boolean

Show a LaTeX rendering of the answer?

Type:
Source:

(static) studentAnswer :observable|string

The student's current (not necessarily submitted) answer

Type:
Source:

(static) studentAnswerLaTeX :observable|TeX

TeX version of student's answer

Type:
Source:

Methods

setName(name)

Set this part's name.

Parameters:
Name Type Description
name string
Inherited From:
Source:

(static) focusInput()

Give the input box focus

Source: