addAttributesToRender() protected méthode

Adds attribute id to the renderer.
protected addAttributesToRender ( $writer )
Exemple #1
0
 /**
  * Ensure that the ID attribute is rendered and registers the javascript code
  * for initializing the active control.
  */
 protected function addAttributesToRender($writer)
 {
     parent::addAttributesToRender($writer);
     $writer->addAttribute('id', $this->getClientID());
     $options = TJavaScript::encode($this->getPostBackOptions());
     $cs = $this->getPage()->getClientScript();
     $code = "jQuery('#" . $this->getWidgetID() . "')." . $this->getWidget() . "(" . $options . ");";
     $cs->registerEndScript(sprintf('%08X', crc32($code)), $code);
 }
Exemple #2
0
 protected function addAttributesToRender($writer)
 {
     $writer->addAttribute('id', $this->getClientID());
     parent::addAttributesToRender($writer);
 }