Changeset 1530

Show
Ignore:
Timestamp:
11/29/2006 06:00:39 PM (2 years ago)
Author:
wei
Message:

add more options for toggle

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/framework/Web/UI/ActiveControls/TCallbackClientScript.php

    r1463 r1530  
    202202         * Toggles the visibility of the element. 
    203203         * @param TControl control element or element id 
    204          */ 
    205         public function toggle($element) 
    206         { 
    207                 $this->callClientFunction('Element.toggle', $element); 
     204         * @param string visual effect, such as, 'appear' or 'slide' or 'blind'. 
     205         * @param array additional options. 
     206         */ 
     207        public function toggle($element, $effect=null, $options=array()) 
     208        { 
     209                $this->callClientFunction('Element.toggle', array($element,$effect,$options)); 
    208210        } 
    209211