bkardell / common-panel

An effort to define a new element with clear semantics and separation
14 stars 3 forks source link

add activate callback #15

Closed bkardell closed 9 years ago

bkardell commented 9 years ago

Using this in production with a few things, I have a need to add:

panelset.addEventListener("activate", function (evt) { // evt.target is which panel was activated }, false);

or something similar. Intending to do the above unless someone is wary.

bkardell commented 9 years ago

committed - I decided to make it _activate for forward compatibility purposes and it happens on a panel and bubbles (it is also cancellable).