CJuiDialog show / hide options

Hi!

I’m learning Yii and I have a question:

On the code below, how do I make the direction of slide effect be from top to down? Actually, by default its from left to right.




$this->beginWidget('zii.widgets.jui.CJuiDialog', array(        

        'id'=>'loginDialog',

                        'options'=>array(

                            'title'=>'Login / Register',

                            'autoOpen'=>true,

                            'draggable'=>false,

                            'resizable'=>false,

                            'closeOnEscape' => true,                                                        

                            'show'=>'slide',

                            'hide'=>'slide',

                            'position'=>'center',

                            'modal'=>true,                            

                        )                        

        )

);

?>

Thanks in advance!

Not sure but maybe this could work




...

'show'=>{effect:"drop",options:{direction:"down"},speed:1000},

'hide'=>{effect:"drop",options:{direction:"up"},speed:1000},

...

Found it on this demo page

or simple try


...

'show'=>'slideDown("slow")',

'hide'=>'slideUp("slow")',

...

Take also a look at

http://api.jquery.co…ffects/sliding/

and

http://docs.jquery.c…s/Drop#overview

First of all, thank you very much for the quick reply!

I tried both ways, but didnt worked. I think it have something with the quotes. Any idea?

I’ve looking into JQuery UI documentation, but i dont know how to pass this parameters to hide / show in a Yii way.

Thanks.

From what I’ve seen in the JQuery site if you change you




'show'=>'slide'

'hide'=>'slide'



To




'show'=>'blind'

'hide'=>'blind'



It should work how you want it.