public function onClickConsole($callback, $title = null)
    {
        if (is_null($title)) {
            $title = $this->template->get('Content');
        }

        $this->virtual_page = $this->add('VirtualPage', ['type' => 'frameURL']);
        /** @type VirtualPage $this->virtual_page */
        $this->virtual_page
            ->bindEvent($title)
            ->set(function ($p) use ($callback) {
                /** @type View_Console $console */
                $console = $p->add('View_Console');
                $console->set($callback);
            });
    }
public function onClickConsole($callback, $title = null)
    {
        if (is_null($title)) {
            $title = $this->template->get('Content');
        }

        $this->virtual_page = $this->add('VirtualPage', ['type' => 'frameURL']);
        /** @type VirtualPage $this->virtual_page */
        $this->virtual_page
            ->bindEvent($title)
            ->set(function ($p) use ($callback) {
                /** @type View_Console $console */
                $console = $p->add('View_Console');
                $console->set($callback);
            });
    }
public function onClickConsole ( $ callback , $ title = null ) { if ( is_null ( $ title ) ) { $ title = $ this -> template -> get ( 'Content' ) ; } $ this -> virtual_page = $ this -> add ( 'VirtualPage' , [ 'type' => 'frameURL' ] ) ; /** @type VirtualPage $this->virtual_page */ $ this -> virtual_page -> bindEvent ( $ title ) -> set ( function ( $ p ) use ( $ callback ) { /** @type View_Console $console */ $ console = $ p -> add ( 'View_Console' ) ; $ console -> set ( $ callback ) ; } ) ; }
Add click handler on button, that will execute callback. Similar to
onClick, however output from callback execution will appear in a
dialog window with a console.

@param callable $callback
@param string $title
Add click handler on button that will execute callback . Similar to onClick however output from callback execution will appear in a dialog window with a console .