/** * 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()); }
/** * 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(); }
/** * 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); }
/** * 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); }
/** * 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()); }