Extensibility via Events or "hooks"/callbacks

Created on 17 July 2016, over 8 years ago
Updated 20 May 2024, 7 months ago

Goal

To let other modules do actions before/after RefreshLess replaces regions.

Example

  • Animation: Animates a region (old content fades out, new content fades in). Or even do "shared-element animations". Similar effects was showcased in this Drupalcon talk.
  • Progress bar
  • Other Drupal behaviours that needs to be re-attached. (Already exists, but could be generalised into one system)

Proposal

  • Add two custom events RefreshLessBeforeRegionUpdate and RefreshLessAfterRegionUpdate.

Things that aren't clear

  • Blocking vs. non-blocking. In the case of animation we what to work in a blocking way (let animation finish before replacing content). That's probably not going to work with events.

See also

http://youtube.github.io/spfjs/documentation/events/
https://vuejs.org/guide/transitions.html#Transition-Flow-Details

Feature request
Status

Active

Version

1.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.71.5 2024