init - Methods - Evaluation Options Editor API

Evaluation Options Editor API Methods

init()

Initializes an instance of the LearnosityEvaluationOptionsEditor app.

You would want to call this method when you want to start using the Evaluation Options Editor API, for example, before you create the first evaluation options editor in your application.

Important The Evaluation Options Editor API script must be loaded on the page before you call this method. Loading the script adds the LearnosityEvaluationOptionsEditor object to the JavaScript runtime. See Getting started with the Evaluation Options Editor API for how to load the script.

Examples

// Initialize the Evaluation Options Editor app
const evaluationOptionsEditorApp = await LearnosityEvaluationOptionsEditor.init();

Arguments

None.

Return value

Type Promise

Resolves to an evaluationOptionsEditorApp object, which provides the createEditor method.

Was this article helpful?

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