jQuery UI: dialog show/hide effects with options

Viewed 71551

Is it possible to specify options for the show and hide options of a Dialog box in jQuery UI.

For example, instead of:

$('#dialog').dialog({
  show: 'fade'
});

Something like:

$('#dialog').dialog({
  show: {effect: 'fade', speed: 1000}
});

(The code above does not, of course, work.)

What I'm really trying to use is the "complete" method inside of the effect, or a callback function, so I can select some text after the effect is done.

If anyone knows, thanks.

6 Answers

position: { my: "bottom", at: "center", of: window} means that the bottom side going up to center of the dispayed window

Related