I made the new ‘Texture element’ but I am so confused at how to add the event listener that exists on other ‘Texture elements’. I do know that I would assign it with:
[span/div/button name].addEventListener('click', () => /* this I miss */));
I just can’t seem to find the function that is responsible for assigning the textures. Here is the image on where I am stuck.
Do I need to create my own function for it or is there a way to assign the existing function/listener?