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 _deleteProperty ( property )

Delete view setting property.

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 method hasVisitorGroup ( )

Indicates that in current view setting has visitor group or not