public function __construct($caption, $jsCode, $event = "click")
 {
     parent::__construct(NULL);
     $this->params["text"] = $caption;
     $this->params[$event] = $this->addFunction($jsCode);
 }
 public function __construct(JsUtils $js)
 {
     parent::__construct($js);
     $this->events = array();
 }