Items API Methods
feature()
Returns the interface to a specified Feature in the assessment.
You would want to use this method so that you can control the Feature using its own set of methods, to programatically open a Calculator Feature in the assessment, for example.
Examples
var myFeature = itemsApp.feature('my_feature_reference_id');
console.log(myFeature);
Arguments
-
featureReference string
Reference ID of the Feature that you want to interact with.
Return value
Type object
Feature interface object when found.Related articles
- See the list of Feature methods avaliable to all Feature types.
- The
features()
method, which allows you to retrieve the list of Feature references, so that you can access the Feature interfaces. - The
question()
method, which allows you to retrieve the interface for a specific Question.