I am trying to set action on component’s element (for example, in component.js it will be tagName: ‘div’), not on elements inside the component.
I don’t have element <button> inside my component. It was just an example how to pass event type in element. I need pass event type in component and it must be dynamically.