protected function renderBody() { $contents = parent::renderBody(); $options = TJavascript::toList(array('revert' => $this->getRevert())); $script = "new Draggable('{$this->ClientID}', {$options});"; $contents .= TJavascript::render($script); return $contents; }