Public Method Items API

getFeatures()

Returns the JSON object data for each Feature in the Activity.

You would want to use this method so that you can loop through all the Features and check that a certain Feature, such as a ruler, is available for the learner, for example.

Examples

var myFeatures = itemsApp.getFeatures();
console.log(myFeatures);

Arguments

None.

Return value

object

An object where each key is the Feature reference ID and the values are the JSON data objects for each Feature.

Related articles

  • The getQuestions() method, the method used to get the JSON object data for all Questions in the assessment.
  • The getItems() method, the method used to get the JSON object data for all Items in the assessment.
Was this article helpful?