Prado\Web\UI\ActiveControls\TActivePanel::addAttributesToRender PHP Метод

addAttributesToRender() защищенный Метод

Adds attribute id to the renderer.
protected addAttributesToRender ( $writer )
    protected function addAttributesToRender($writer)
    {
        $writer->addAttribute('id', $this->getClientID());
        parent::addAttributesToRender($writer);
    }

Usage Example

Пример #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);
 }
All Usage Examples Of Prado\Web\UI\ActiveControls\TActivePanel::addAttributesToRender