public function set($fx)
    {
        /** @type VirtualPage $p */
        $p = $this->add('VirtualPage');
        $p->set($fx);

        $this->setURL($p->getURL());

        return $this;
    }
public function set($fx)
    {
        /** @type VirtualPage $p */
        $p = $this->add('VirtualPage');
        $p->set($fx);

        $this->setURL($p->getURL());

        return $this;
    }
public function set ( $ fx ) { /** @type VirtualPage $p */ $ p = $ this -> add ( 'VirtualPage' ) ; $ p -> set ( $ fx ) ; $ this -> setURL ( $ p -> getURL ( ) ) ; return $ this ; }
If callable is passed, it will be executed when the dialog is popped
through the use of VirtualPage.

@param callable $fx

@return $this
If callable is passed it will be executed when the dialog is popped through the use of VirtualPage .