Javascript for Episerver 7.5 cms

ViewSettingsManager

Summary

This class to manage view settings by manipulating a list of concrete view settings objects (for example: resolution, visitor group, ...). The class is responsible for updating URL hash to keep view settings state. onViewSettingChanged event is raised when one or more view settings are applied.

Location

epi-cms/contentediting/ViewSettingsManager

Extends

Properties

_activeKey

Key name for active state

_attrPairNames

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

_hashWrapper

The hash wrapper instance.

_viewSettingsMap

Map of registered view setting items by their key.

enabled

State of eye toggle button. True if it is expanded.

previewParams

viewSettings

List of registered view setting items.

viewSettingsHashValue

All view settings value which are parsed from or persisted to URL hash.

Methods

public method _addProperty ( property , value )

Adds view setting property.

Parameters

public method _applyViewSettingValue ( key , value )

Apply a view setting.

Parameters

public inherited method _changeAttrValue ( name , value )

Internal helper for directly changing an attribute value.

Parameters

public method _deleteProperty ( property )

Delete view setting property.

Parameters

public method _enabledGetter ( )

Return the current status (Enable or Disable)


public method _enabledSetter ( value )

Enable or disable all view settings. value: Boolean If true, all view setting will be applied. Otherwise, none of them makes any effect.

Parameters

public inherited method _get ( name , names )

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

Parameters

public method _toObjects ( url )

Cast url view settings to URI object.

Parameters

public method _updateHash ( )

Updates hash to reflect view setting changes.


public method _updateProperty ( property , value )

Updates an existing view setting property.

Parameters

public inherited method get ( name )

Get a property on a Stateful instance.

Parameters

public method getRenderingViewSettings ( )


public method hasVisitorGroup ( )

Indicates that in current view setting has visitor group or not


public method onPreviewReady ( preview )

Parameters

public method postscript ( )

Set up the instance after creation.


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