@puneet_epigraph/epigraph_configurator_core
v1.5.5
Published
Code Level Structure and Responsibility
Downloads
9
Readme
#Event Listeners
You can add the following listeners to this web component:
- openedContextMenu
This event will be fired whenever an item is clicked or selected in the 3D scene, data packet will contain: data.offsetX, data.offsetY : mouse position of the click data.itemData contains skuID, guid, name, etc data.hotspotData etc
- closedContextMenu
- configurator-core-ready
- itemChange
- saveButtonTrigger
- shareButtonTrigger
- hotspotClick
- hotspotExit
#Function Calls
These are the following function calls you can make on this webcomponent
##Available Functions
- fireUp()
- sendMessage()
- Used to communicate to the core webcomponent
###Available messages:
- begin
- loadConfig
- alert
- spawnGhosts
- removeAllGhosts
- clickHotspot
- exitHotspot
- removeItem
- spawnItem
- saveButtonFromUI
- closeContextMenu
##Example
You have your webcomponent:
<epigraph-configurator-core id="mcc" />
You can write following script to add event listeners and do your function calls:
<script></script>