This is a lower-level API. Lower-level APIs are not recommended for most projects, and may not be available on all plans. See our page on recommended deployment patterns for more information.
Public Method Assess API

items()

Allows access to an object with methods that allow navigation across items.

Arguments

None.

Return value

Value object

An object with methods for navigating across items. Each method returns a Promise that is resolved when navigation completes, or rejected if navigation was interrupted (e.g. the student may cancel navigation via the warning_on_change dialog).

Properties

  • goto function
    Navigates to the specified item, given an item reference or zero-based index as an argument.
    Returns: Promise
  • next function
    Navigates to the next item in the activity.
    Returns: Promise
  • previous function
    Navigates to the previous item in the activity.
    Returns: Promise
Was this article helpful?