reset - Methods - Rubric Editor API

Rubric Editor API Methods

reset()

Resets the current rubric JSON being edited to null.

You would want to use this method to reset the editor to its initial state, for example, when you want to clear the current editing rubric and start over.

If the editor is created with variant set to 'default', it will reset the editor to the create view.

If the editor is created with variant set to 'modal', the button to open the modal will be reset to its initial state "Create rubric".

Examples

await editor.reset();

Arguments

None.

Return value

Type Promise

Resolves when the editor is reset.

Was this article helpful?

Did you arrive here by accident? If so, learn more about Learnosity.