Come rilevare il cambiamento di visibilità in un 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