How to detect visibility change in widget?

Would this do the trick?

const showExtraInfo = helper.attrs.topic;
  if(!showExtraInfo) {
    
  }

showExtraInfo is the scrolled state with the title in the header

Full example using decorateWidget here

3 Likes