original_string: 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);
              });
      }
code: 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);
              });
      }
code_tokens: 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 ) ; } ) ; }
docstring: 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
docstring_tokens: 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 .