getItemTags - Methods - Author API

Author API Methods

getItemTags()

Gets the current list of Tags associated with the Item being edited. Tags are used in Learnosity authoring to make Items and Activities more contextualized and easily searchable.

You would want to use this method so that you can report on learner performance on a set of Items or Activities, for example.

Examples

var itemTags = authorApp.getItemTags();
console.log(itemTags);

Arguments

None.

Return value

Type array[tagsV2]

Returns an array of TagsV2 objects.

Type boolean

Returns false if not in the Item editor view.

Caveats

Any Tags hidden by the hide_tags initialization option are not returned by this method.

Type definitions

  • tagsV2 object

    Tags are used to improve searching for content while authoring and for reporting and analytics purposes.

    See Understanding Tag Formats for Content Creation and Filtering for more information.

    • name string

      The Tag name.

      Maximum length is 255 characters.

    • type string

      The Tag type.

      Maximum length is 255 characters.

Related articles

Was this article helpful?

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