Javascript for Episerver 7.5 cms

PersonalizedGroupViewModel (constructor)

Location

epi-cms/contentediting/viewmodel/PersonalizedGroupViewModel

Extends

Properties

_attrPairNames

Used across all instances a hash to cache attribute names and their getter and setter names.

label

name

The name of the personalized group.

Methods

public inherited method _changeAttrValue ( name , value )

Internal helper for directly changing an attribute value.

Parameters

protected method _emitChildrenChanged ( sender )

Emits children changed event

Parameters

public inherited method _get ( name , names )

Private function that does a get based off a hash of names

Parameters

public method _hash ( child )

Creates a hash for the given child.

Parameters

public inherited method _readOnlySetter ( readOnly )

Parameters

public method _selectedSetter ( selected )

Parameters

public method _visibleGetter ( )


public method addChild ( child , index )

Adds a child to the view model at the given index or at the end of the collection.

Parameters

public inherited method constructor ( )


public inherited method destroy ( preserveDom )

Destroy this class, releasing any resources registered via own().

Parameters

public inherited method emit ( type , event )

Parameters

public method equals ( item )

Returns true if this groups name is the same as the name on the given item.

Parameters

public inherited method get ( name )

Get a property on a Stateful instance.

Parameters

public inherited method getChild ( item )

Get the first child whose properties match the properties on the given item.

Parameters

public inherited method getChildById ( id )

Parameters

public inherited method getChildren ( )

Get the children of the view model.


public inherited method indexOf ( child )

Returns the index of the child in the list of children

Parameters

public inherited method modify ( callback , scope , emitChanged )

Method used to wrap several changes in one "operation" When the callback has been executed the "changed" event will be emitted

Parameters

public inherited method move ( child , index )

Moves the child to a specific index

Parameters

public method moveNext ( )

Move this instance to the next index in the parents child list


public method moveOutsideGroup ( child )

Parameters

public method movePrevious ( )

Move this instance to the previous index in the parents child list


public inherited method on ( type , listener )

Parameters

protected method own ( )

Track specified handles and remove/destroy them when this instance is destroyed, unless they were already removed/destroyed manually.


public inherited method postscript ( params )

Parameters

public method remove ( )

Removes the group from the parent


public inherited method removeChild ( child , recursive )

Remove a child from the view model.

Parameters

public method serialize ( )

Serialize the view model's children to an array.


public inherited method set ( name , value )

Set a property on a Stateful instance

Parameters

public inherited method watch ( name , callback )

Watches a property for changes

Parameters