Component Events

The component has the callbacks in the options for use in constructor, but the component has events too. See the examples below for the use of the events. The supported events are:

Events in HTML
<div class="image-compare" id="events-element">
    <img src="./images/comparer-1.jpg">
    <img src="./images/comparer-2.jpg">
</div>
document.getElementById('events-element').addEventListener('slidermove', function(){
    console.log("slider moved");
});
document.getElementById('events-element').addEventListener('resize', function(){
    console.log("resizing component");
});

Note: one issue in this events is: that's not receiving data from the component. I want to change this in the future.