可以对jQuery UI Dialog Widget的显示/隐藏方法进行更精细的控制吗? [英] Is possible to have more granular control over jQuery UI Dialog Widget's show/hide method?

查看:116
本文介绍了可以对jQuery UI Dialog Widget的显示/隐藏方法进行更精细的控制吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前看来,当使用Dialog小部件时,我只能以最基本的形式使用效果。例如,以下内容将使用拖放效果来显示和隐藏对话框:

Currently it seems that I can only use effects in their most basic form when using the Dialog widget. For example, the following will use the drop effect for both showing and hiding the dialog box:

$('#dialog').dialog({show:'drop', hide:'drop'});

但是,drop方法的默认值始终向左。我真正想要的是放在右边。这样的东西:

However, the default for the drop method always drops to the left. What I really want is for it to drop to the right. Something like this:

$('#dialog').dialog({
   show:{effect:'drop', direction:'right'},
   hide:{effect:'drop', direction:'right'}
});

这可能吗?

我正在使用1.6rc6。我也试过1.5.3(稳定)没有任何运气。

I'm currently using 1.6rc6. I've also tried it 1.5.3 (stable) without any luck.

在挖入源后,我不认为这在版本1.5.3和1.6rc *都支持。在支持上述功能之前,可能需要更改API。 Steerpike发现一个版本,可能应该在主线。如果有人知道,请纠正我。

After digging into the source a bit, I don't think this is supported in both version 1.5.3 and 1.6rc*. It'll probably require a change to the API before the functionality above can be supported. Steerpike has found a version that probably should be in the mainline. If anyone knows otherwise, do correct me.

推荐答案

目前不可能使用1.6和1.7.1。

This is currently not Possible with 1.6 and 1.7.1.

这篇关于可以对jQuery UI Dialog Widget的显示/隐藏方法进行更精细的控制吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆