Client-Side Framework and Components / Snippets-components relationship |
When initializing, the Client-Side Framework (CSF) converts all properties in the namespace object snippetEvent into DOM event listeners on the component element (this.elt).
Events registered in snippetEvent are automatically removed by the CSF when the component is destroyed.
this.snippetEvent.click = function(event) { alert('mouse click'); }