Public Method Items API

reset()

Calling this method will remove all Items API UI elements from the specified instance of the itemsApp from the page, and will internally reset the itemsApp state.

You would want to use this method so that you can remove all of the assessment DOM elements from the page in your single page application, for example.

When re-initializing Items API, you would call the reset() method followed by the window.LearnosityItems.init() method.

Examples

// Reset the instance of Items API
itemsApp.reset();

// Re-initialize the Items API
var itemsApp = window.LearnosityItems.init(...);

Arguments

None.

Return value

None (undefined).

Related articles

Was this article helpful?