summaryrefslogtreecommitdiff
path: root/framework/Web/UI/ActiveControls/TCallbackClientScript.php
diff options
context:
space:
mode:
authorwei <>2006-11-30 00:00:39 +0000
committerwei <>2006-11-30 00:00:39 +0000
commit074032e0270ae70eed481a082158dc9554aaa1db (patch)
tree8d327c6da820ad27ea3afbdb9a357f66aa0fb72f /framework/Web/UI/ActiveControls/TCallbackClientScript.php
parent50853ea4a6811879a26458e495c46149f7af5313 (diff)
add more options for toggle
Diffstat (limited to 'framework/Web/UI/ActiveControls/TCallbackClientScript.php')
-rw-r--r--framework/Web/UI/ActiveControls/TCallbackClientScript.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/framework/Web/UI/ActiveControls/TCallbackClientScript.php b/framework/Web/UI/ActiveControls/TCallbackClientScript.php
index 6656822e..19e395df 100644
--- a/framework/Web/UI/ActiveControls/TCallbackClientScript.php
+++ b/framework/Web/UI/ActiveControls/TCallbackClientScript.php
@@ -201,10 +201,12 @@ class TCallbackClientScript extends TApplicationComponent
/**
* Toggles the visibility of the element.
* @param TControl control element or element id
+ * @param string visual effect, such as, 'appear' or 'slide' or 'blind'.
+ * @param array additional options.
*/
- public function toggle($element)
+ public function toggle($element, $effect=null, $options=array())
{
- $this->callClientFunction('Element.toggle', $element);
+ $this->callClientFunction('Element.toggle', array($element,$effect,$options));
}
/**