new NumberEntryPartDisplay()
Display code for a Numbas.parts.NumberEntryPart
Extends
Members
(static) cleanStudentAnswer :observable|string
Cleaned-up version of student answer (remove commas and trim whitespace)
Also check for validity and give warnings
Type:
(static) correctAnswer :observable|number
The correct answer
Type:
(static) inputHasFocus :observable|boolean
Does the input box have focus?
Type:
(static) inputHint :observable|string
Some text describing how the student should enter their answer
Type:
(static) showInputHint :observable|string
Show the input hint?
Type:
(static) showPreview :boolean
Show a LaTeX rendering of the answer?
Type:
(static) studentAnswer :observable|string
The student's current (not necessarily submitted) answer
Type:
Methods
setName(name)
Set this part's name.
Parameters:
Name | Type | Description |
---|---|---|
name |
string |
- Inherited From:
- Source:
(static) focusInput()
Give the input box focus