/** * @override */ function PreRender($args = array()) { if ($this->InitFunctionName) { $this->script("\$('#{$this->id}').{$this->InitFunctionName}(" . system_to_json($this->Options) . ");"); } parent::PreRender($args); }
/** * @override */ function PreRender($args = array()) { // we register a new HOOK_PRE_RENDER handler here so that it will be executed when all others are // finished. so derivered classes can add their loader code in PreRender as usual. if (count($args) > 0) { $controller = $args[0]; if ($controller instanceof HtmlPage) { if (!self::$_delayedHookAdded) { self::$_delayedHookAdded = true; register_hook(HOOK_PRE_RENDER, $this, 'AddLoaderCode'); } } } return parent::PreRender($args); }
/** * @override */ function PreRender($args = array()) { if (isset($this->RowOptions['hoverclass']) && $this->RowOptions['hoverclass']) { $over = "function(){ \$(this).addClass('{$this->RowOptions['hoverclass']}') }"; $out = "function(){ \$(this).removeClass('{$this->RowOptions['hoverclass']}') }"; $rowhover = "\$('#{$this->id} tbody tr').hover({$over},{$out});"; $this->script($rowhover); } parent::PreRender($args); }