Javascript for Episerver 7.5 cms

_ContentAreaTreeModel (constructor)

Location

epi-cms/contentediting/editors/_ContentAreaTreeModel

Extends

Properties

model

root

Methods

public method checkItemAcceptance ( target , item , position )

Parameters

public method constructor ( params )

Parameters

public method deleteItem ( item )

Parameters

public inherited method destroy ( )

Destroys this object, releasing connections to the store


public inherited method fetchItemByIdentity ( keywordArgs )

Given the identity of an item, this method returns the item that has that identity through the onItem callback. Conforming implementations should return null if there is no item with the given identity. Implementations of fetchItemByIdentity() may sometimes return an item from a local cache and may sometimes fetch an item from a remote server.

Parameters

public method getChildren ( parentItem , onComplete )

Parameters

public method getIdentity ( item )

Parameters

public method getLabel ( item )

Parameters

public method getRoot ( onItem )

Parameters

public inherited method isItem ( something )

Returns true if something is an item and came from this model instance. Returns false if something is a literal, an item from another model instance, or is any object other than an item.

Parameters

public method mayHaveChildren ( item )

Parameters

public method newItem ( args , parent , insertIndex , before )

Parameters

public inherited method onChange ( item )

Callback whenever an item has changed, so that Tree can update the label, icon, etc. Note that changes to an item's children or parent(s) will trigger an onChildrenChange() so you can ignore those changes here.

Parameters

public inherited method onChildrenChange ( parent , newChildrenList )

Callback to do notifications about new, updated, or deleted items.

Parameters

public method pasteItem ( childItem , oldParentItem , newParentItem , bCopy , insertIndex , before )

Move or copy an item from one parent item to another. Used in drag & drop. If oldParentItem is specified and bCopy is false, childItem is removed from oldParentItem. If newParentItem is specified, childItem is attached to newParentItem.

Parameters