Class: Category


Summary

Programme Category


Remarks

This is equivilent to a single entry in the "category" file.

You can always find the category information by using the category id on the end of a URL:

var strURL = "http://library.digiguide.com/lib/category/" + category.id


Properties

PropertyDescription
 id [read only] Unique ID for the category
 name [read only] Name of the category


Examples

Code below lists the categories on the menu;

var listings = app.getListingsManager();
var cats = listings.getCategories();
for (var cat in cats )
{
menu.addItem( cats[cat].name + "(" + cats[cat].id + ")", onDoNothing );
}


See Also

  • ListingsManager : getCategories
  • Programme : category


    Requirements

    Build 1059