Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jqueryui dialog, direction of slide

I'm using jquery dialog and want to slide on show. How do I specify the direction of the slide?

$('.selector').dialog({ show: 'slide' });
like image 785
Jourkey Avatar asked Sep 26 '09 19:09

Jourkey


3 Answers

To control the direction, you can use 'slideUp'/'slideDown' instead of 'slide'.

$('.selector').dialog({ show: 'slideDown', hide: 'slideUp' });
like image 194
ClearCloud8 Avatar answered Oct 11 '22 14:10

ClearCloud8


This works for me with JQuery 2 and JQuery UI 1.11:

$("#dialog").dialog({show: {effect:"slide", direction:"right"}}) 

Note that direction "right" slides FROM right to left.

like image 25
TrystanC Avatar answered Oct 11 '22 15:10

TrystanC


Considering these links :

- Dialog - show with effect and options (May 2009, so not old) - Is possible to have more granular control over jQuery UI Dialog Widget’s show/hide method?

It doesn't seem to be possible, at least with current versions...

like image 28
Pascal MARTIN Avatar answered Oct 11 '22 16:10

Pascal MARTIN