Accessing WhileVisible and WhileActive values in JS

Hello,
I was wondering if there was a way to databind the value of triggers like WhileVisible and WhileActive to JS Observables.
My end goal is that I want a JS Observable to report true if a UX Markup object is visible/active on screen.

Thanks

Hi Zia,

a <Callback Handler="{someFunction}" /> can be put in almost any trigger, although in most cases it belongs in Pulse triggers, not While triggers.

If you explained what it is that you’re trying to make / achieve, we could probably find a better solution to that challenge.