It would be great to have an event that fires only when a tab or details element is being shown or hidden. This would much help us solving issues like https://www.drupal.org/node/2631710 where JS needs to bind on event after details element is shown, not before.

Comments

sanja_m created an issue. See original summary.

DuaelFr’s picture

Version: 8.0.x-dev » 8.1.x-dev
Issue tags: +DX (Developer Experience), +TX (Themer Experience)

Thanks for submitting your issue.
Feature requests have to be filled against the next minor version (or next major if they plan to introduce a BC break).

I think that kind of event does not cost much and can always be useful for many reasons (eg. a map in a [vertical]tab that'd need to be loaded/resized on shown).

Version: 8.1.x-dev » 8.2.x-dev

Drupal 8.1.0-beta1 was released on March 2, 2016, which means new developments and disruptive changes should now be targeted against the 8.2.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

jimmyko’s picture

I am looking for the similar thing in Drupal 7 as well. Not only vertical tabs, but also other widget built with js in Drupal does not fire any event for other developer. It would be better to take event into account during the design in future.

Version: 8.2.x-dev » 8.3.x-dev

Drupal 8.2.0-beta1 was released on August 3, 2016, which means new developments and disruptive changes should now be targeted against the 8.3.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.3.x-dev » 8.4.x-dev

Drupal 8.3.0-alpha1 will be released the week of January 30, 2017, which means new developments and disruptive changes should now be targeted against the 8.4.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.