| Package: | CQ_Analytics |
| Class: | ClientContextUtils |
| Extends: | Object |
| Clientlib: | personalization.core |
| Property | Defined By | |
|---|---|---|
|
ClientContextUtils.DEFAULT_INIT_DELAY : Number
<static> Default init delay. See onStoreInitialized.
|
ClientContextUtils | |
| Method | Defined By | |
|---|---|---|
init( String ccPath, String pagePath ) : void <static> Inits the ClientContext.
<static> Inits the ClientContext.
Parameters:
|
ClientContextUtils | |
initUI( String ccPath, String pagePath ) : void <static> Inits the ClientContext UI.
<static> Inits the ClientContext UI.
Parameters:
|
ClientContextUtils | |
onStoreInitialized( String storeName, Function callback, Boolean/Number delay ) : void <static> Executes a callback function when a store is initialized. Some store might be initialized several time...
<static> Executes a callback function when a store is initialized. Some store might be initialized several times
(default init + asynchronous data loading): use delay parameter to try to get only one call of the callback.
A timeout is defined before every init event, next init event kills all previous calls. Latest one execute
the callback. WARNING: if time between 2 init events is bigger than timeout, callback is called several
times.
Parameters:
|
ClientContextUtils | |
onStoreRegistered( String storeName, Function callback ) : void <static> Executes a callback function when a store is registered.
<static> Executes a callback function when a store is registered.
Parameters:
|
ClientContextUtils | |
renderStore( String id, String storeName ) : void <static> Renders a store into the DOM. On store update, rendering will be updated. Rendering is done by calling...
<static> Renders a store into the DOM. On store update, rendering will be updated. Rendering is done by calling the
renderer method of the store.
Parameters:
|
ClientContextUtils | |
renderStoreProperty( String id, String storeName, String propertyName, [String prefix], [String suffix], [String defaultValue] ) : void <static> Renders a store property value into the DOM. On store update, rendering will be updated.
<static> Renders a store property value into the DOM. On store update, rendering will be updated.
Parameters:
|
ClientContextUtils | |
storePropertiesOptionsProvider( String storeName, [Boolean showValue] ) : Object[] <static> Returns a list of options: list of properties of a store.
<static> Returns a list of options: list of properties of a store.
Parameters:
|
ClientContextUtils | |
|
storesOptionsProvider() : Object[] <static> Returns a list of options: list of stores registered in the CQ_Analytics.StoreRegistry.
<static> Returns a list of options: list of stores registered in the CQ_Analytics.StoreRegistry.
Parameters:
|
ClientContextUtils | |