From 074032e0270ae70eed481a082158dc9554aaa1db Mon Sep 17 00:00:00 2001 From: wei <> Date: Thu, 30 Nov 2006 00:00:39 +0000 Subject: add more options for toggle --- framework/Web/UI/ActiveControls/TCallbackClientScript.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'framework/Web/UI') 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)); } /** -- cgit v1.2.3