Prado\Web\UI\WebControls\TDropDownList::addAttributesToRender PHP 메소드

addAttributesToRender() 보호된 메소드

Adds attributes to renderer.
protected addAttributesToRender ( $writer )
    protected function addAttributesToRender($writer)
    {
        $writer->addAttribute('name', $this->getUniqueID());
        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());
     if ($this->getAutoPostBack()) {
         $this->getActiveControl()->registerCallbackClientScript($this->getClientClassName(), $this->getPostBackOptions());
     }
 }