Getting a handle to an object

Is there a way to get a handle to an object from within JS?

I need to get a handle to an EdgeNavigator object and call it to pop out when a condition is met(ex i==0.2).

I would appreciate any input you may have.

My apologies I need a handle to a Panel that is being brought in using edgeNavigation, I just need to know if there is a way to get a handle on the panel and activate it.

Individual wrote: Is there a way to get a handle to an object from within JS?

Not currently.

The recommended way is doing something like this:

<App>
    <JavaScript>
        var foo = require("FuseJS/Observable")();
        setInterval(function(){
            foo.value = !foo.value;
        }, 1000);
        module.exports = {
            somecondition: foo
        };
    </JavaScript>
    <EdgeNavigator>
        <WhileTrue Value="{somecondition}">
             <NavigateToggle Target="sidebar" />
        </WhileTrue>
        <Panel Width="150" Edge="Left" Background="#f63" ux:Name="sidebar" />
    </EdgeNavigator>
</App>