예제 #1
0
 /**
  * Add the client id to the input textbox, and register the client scripts.
  * @param THtmlWriter writer
  */
 protected function addAttributesToRender($writer)
 {
     parent::addAttributesToRender($writer);
     $writer->addAttribute('id', $this->getClientID());
 }
예제 #2
0
 /**
  * Add the client id to the input textbox, and register the client scripts.
  * @param THtmlWriter writer
  */
 protected function addAttributesToRender($writer)
 {
     parent::addAttributesToRender($writer);
     $writer->addAttribute('id', $this->getClientID());
     $this->registerCalendarClientScript();
 }
예제 #3
0
 /**
  * Adds attribute name-value pairs to renderer.
  * This method overrides the parent implementation by registering
  * additional javacript code.
  * @param THtmlWriter the writer used for the rendering purpose
  */
 protected function addAttributesToRender($writer)
 {
     if ($this->getEnableVisualEdit() && $this->getEnabled(true)) {
         $writer->addAttribute('id', $this->getClientID());
         $this->registerEditorClientScript($writer);
     }
     $this->loadJavascriptLibrary();
     if ($this->getEnableCompression()) {
         $this->preLoadCompressedScript();
     }
     parent::addAttributesToRender($writer);
 }
예제 #4
0
 /**
  * Adds attribute name-value pairs to renderer.
  * This method overrides the parent implementation by registering
  * additional javacript code.
  * @param THtmlWriter the writer used for the rendering purpose
  */
 protected function addAttributesToRender($writer)
 {
     if ($this->getEnableVisualEdit() && $this->getEnabled(true)) {
         $writer->addAttribute('id', $this->getClientID());
         $this->registerEditorClientScript($writer);
     }
     parent::addAttributesToRender($writer);
 }
예제 #5
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());
     $this->getActiveControl()->registerCallbackClientScript($this->getClientClassName(), $this->getPostBackOptions());
 }