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 }); |
...
Syntax:
Code Block | ||
---|---|---|
| ||
IWMH.registerHandler("MENU_ID", IWMC.<<Event Id>>, function (){ // Business functionality here } |
...