The Canvas Core Layer, could be further broken down into the component registries and Component Managers. The following sections provide an extensive view of all such registries and managers and their significance in leading up to an omni-channel framework.
...
Library developers responsibilities: Library developers are expected to register their component definitions against their component meta data.
Syntax:
Code Block | ||
---|---|---|
| ||
CLCR.registerCmp({'KEY':'VALUE'},<<Your Namespace>>); |
CMHR – Context Menu Handler Registry.
...
Syntax:
Code Block | ||
---|---|---|
| ||
CMHR.registerHandler("MENU_ID", function (config){ //config.record.data gives data of the clicked node in grid } |
...
Syntax:
Code Block | ||
---|---|---|
| ||
CWEH.registerHandler("APP_ID",CWEC.<<EventId>>,function(){ // Business functionality here }); |
...
CWMH – Canvas Workspace Menu Handler Registry
What is this registry: This is the registry that stores workspace menu handlers for all the configured menu Items in WORKSPACE_MENU_DEFINITION table.
...
Syntax:
Code Block | ||
---|---|---|
| ||
IWMHCWMH.registerHandler("MENU_ID", IWMCCWMC.<<Event Id>>, function (){ // Business functionality here } |
...