Help
AssessmentEditor
This component shows the editor for questions attached to an assessment item. This is the component that is shown in the "Questions" tab when an author opens an item from the Syllabus or ItemEditor components.
Preview
Properties
ParameterTypeMeaning
EnrollmentIdStringID of the enrollment for which to edit the assessment item. This should be an author enrollment. The enrollment implies a user, course and section.
ItemIdStringID of the assessment item to edit.
ShowSaveBooleanSpecify true for the component to show the "Save" button; specify false to hide the button. Default is true.

If you hide the button, ensure that code exists that calls the saveComponent method to save progress.
ShowCancelBooleanSpecify true for the component to show the "Cancel" button and to fire the Frame API's componentcancelled event. Specify false to hide the button. Default is true.
ShowPropertiesBooleanSpecify true for the component to show the "Properties" link. Specify false to hide the link. Default is true.
ShowFeedbackBooleanSpecify true for the component to show the "Edit Feedback" link. Specify false to hide the link. Default is true.
ShowEditFeedbackBooleanSpecify true for the component to show the "Edit Feedback" buttons and to display feedback along with question and answer. Specify false to hide the buttons and feedback. Default is false.
AllowEditLinkedQuestionsBooleanSpecify true for the component to allow editing the questions that link questions refer to. Specify false to not allow the editing. Default is false.
Events
To listen to events, call addListener on the Frame API.
EventDescription
componentcancelledFires when assessment edits are cancelled. Fires only if ShowCancel is also true.
componentsavedFires when an assessment is saved.
Methods
To call methods, call callComponentMethod on the Frame API.
isEditFeedbackVisible
Determines if the edit feedback UI is visible
Syntax
isEditFeedbackVisible() : Boolean
Returns
true if the edit feedback UI is visible, false otherwise.
showEditFeedback
Shows/hides the edit feedback UI
Syntax
showEditFeedback(Boolean show) : void
Parameters
  • showtrue to show the edit feedback UI, false otherwise.
Returns
void
See Also
QuestionEditor Syllabus ItemEditor Frame API saveComponent componentsaved componentcancelled