Javascript for Episerver 7.5 cms

CategoryTreeStoreModel (constructor)

Summary

store model for category tree.

Location

epi-cms/widget/CategoryTreeStoreModel

Properties

rootCategory

Store root category id.

store

Underlying store that will be queried for category tree items.

Methods

public method constructor ( args )

Parameters

public method getChildren ( parentItem , onComplete )

Calls onComplete() with array of child items of given parent item, all loaded.

Parameters

public method getIdentity ( item )

Returns identity for an item

Parameters

public method getLabel ( item )

Get the label for an item

Parameters

public method getRoot ( onItem )

Calls onItem with the root item for the tree, possibly a fabricated item.

Parameters

public method mayHaveChildren ( item )

Tells if an item has or may have children. Implementing logic here avoids showing +/- expando icon for nodes that we know don't have children. (For efficiency reasons we may not want to check if an element actually has children until user clicks the expando node)

Parameters