Introduction
The following methods can be accessed through the window function that should be present:
window.__ucCmpTo check Interfaces, Types, ENUMS, please refer to the Interfaces page.
closeCmp
Programmatic way to close the CMP
window.__ucCmp.closeCmp()Input | Return Type |
|---|---|
- |
|
refreshScripts
Programmatic way to recheck the unblocking of scripts e.g. for Single Page Applications that add script tags dynamically
window.__ucCmp.refreshScripts()Input | Return Type |
|---|---|
- |
|
showFirstLayer
Programmatic way to show the First Layer
window.__ucCmp.showFirstLayer()Input | Return Type |
|---|---|
- |
|
showSecondLayer
Programmatic way to show the Second Layer
window.__ucCmp.showSecondLayer()Input | Return Type |
|---|---|
- |
|
showServiceDetails
Programmatic way to show the details of a service
window.__ucCmp.showServiceDetails(serviceId)Input | Input Type | Return Type |
|---|---|---|
serviceId | string |
|
Suppress the CMP (UC_UI_SUPPRESS_CMP_DISPLAY)
Programmatic way to suppress the CMP via JavaScript. Add it before the CMP Script.
<script type="application/javascript">
var UC_UI_SUPPRESS_CMP_DISPLAY=true;
</script>updateThemes
Programmatic way to update the Themes
window.__ucCmp.updateThemes(themeData)Input | Input Type | Return Type |
|---|---|---|
themeData | ThemeData |
|