Closed CarloAl closed 5 years ago
I cleaned up those in this pr https://github.com/Tradeshift/elements/pull/154.
For the onOpen
event I don't think it make sense to have it since developers know when they are actually adding the data-visible
attribute. But for the onOpened
(opened
after that PR) maybe we can add the event if we have a good use case for it. Did you encountered a situation that you needed that event?
In my case I have an aside that is used to select the visible columns in a table. Every time I open the aside I need to refresh the updated selected columns and because of the way our code is structured I don't have scope of the columns where I open the aside. I could use custom events but I guess it is pretty standard to have an onpen
event in this case.
We have already defined in
constants.js
theonOpen
andonOpened
events, but they are never used inaside.js
(while theonClose
events are actually triggered). Can we add the same foronOpen?