Class CQ_Analytics.ClientContextUI
| Package: | CQ_Analytics |
| Class: | ClientContextUI |
| Extends: | Object |
| Clientlib: | personalization.clientcontext |
Client Context UI object: manages rendering, show / hide...
This class is a singleton and cannot be created directly.
Added in CQ 5.5.
Public Properties
| |
ClientContextUI.ACTIONS_CONTAINER_ID : Object
<static> UI default actions container id
|
ClientContextUI |
| |
ClientContextUI.ACTIONS_ID : Object
<static> UI default actions header id
|
ClientContextUI |
| |
ClientContextUI.BOX_CLASS : Object
<static> UI default class
|
ClientContextUI |
| |
ClientContextUI.BOX_ID : Object
<static> UI default box id
|
ClientContextUI |
| |
ClientContextUI.CONTAINER_ID : Object
<static> UI default container id
|
ClientContextUI |
| |
ClientContextUI.CONTENT_ID : Object
<static> UI default Client Context content id
|
ClientContextUI |
| |
SHOW_BOX_COOKIE : String
<static> Name of the cookie that stores if CC should be displayed or not on page load
|
ClientContextUI |
Public Methods
| |
ClientContextUI.create( String ccPath, String pagePath ) : void
<static> Creates and inits the Client Context UI.
<static> Creates and inits the Client Context UI.
|
ClientContextUI |
| |
getBoxId() : String
|
ClientContextUI |
| |
hide() : void
Hides the UI.
Fires "beforehide" and "hide" events.
Hides the UI.
Fires "beforehide" and "hide" events.
|
ClientContextUI |
| |
init( String url, String containerId, String boxId, String contentPlaceholderId, Boolean editMode ) : void
Inits the UI.
Inits the UI.
Parameters:
url : StringURL to the Client Context containerId : StringId of the container div boxId : StringId of the UI box contentPlaceholderId : StringId of the placeholder for the CC content editMode : BooleanTrue if edit mode, false otherwise
Returns:
|
ClientContextUI |
| |
isAvailable() : Boolean
Returns if UI is available: true if some content is load into the UI box.
Returns if UI is available: true if some content is load into the UI box.
|
ClientContextUI |
| |
load( Boolean force ) : void
Loads the Client Context content. If already loaded, will not be loaded again until force is set
to true.
Fires "befo...
Loads the Client Context content. If already loaded, will not be loaded again until force is set
to true.
Fires "beforeload" and "load" events.
|
ClientContextUI |
| |
onLoad( Function callback, Object scope ) : void
Helper method to register an on load event. Checks if the Client Context has already been loaded.
Helper method to register an on load event. Checks if the Client Context has already been loaded.
|
ClientContextUI |
| |
render() : void
Renders the UI.
Fires "beforerender" and "render" events.
Renders the UI.
Fires "beforerender" and "render" events.
|
ClientContextUI |
| |
show() : void
Shows the UI. Loads the Client Context and renders the UI if not already done.
Fires "beforeshow" and "show" events.
Shows the UI. Loads the Client Context and renders the UI if not already done.
Fires "beforeshow" and "show" events.
|
ClientContextUI |
| |
toggle() : void
|
ClientContextUI |
Public Events
This class has no public events.