jquery-ui 对话框_jQuery UI对话框插件

jquery-ui 对话框

We will discuss about the jQuery UI Dialog plugin in this post. The jQuery UI Dialog plugin is used for displaying information, which contains a dialog title and a content area. We can move, resize or close the dialog window.

在本文中,我们将讨论有关jQuery UI Dialog插件的信息。 jQuery UI对话框插件用于显示信息,其中包含对话框标题和内容区域。 我们可以移动,调整大小或关闭对话框窗口。

The jQuery UI provides different options, methods and events to customize the Dialog plugin. We will see these techniques in the following sections.

jQuery UI提供了不同的选项,方法和事件来定制Dialog插件。 我们将在以下各节中看到这些技术。

内容 (Contents)

对话框插件选项 (Dialog Plugin Options)

In this section, we will discuss about different options available to customize the jQueryUI Dialog plugin. We have used many of these options in the Dialog Plugin in Action section.

在本节中,我们将讨论可用于自定义jQueryUI对话框插件的不同选项。 我们在“操作中的对话框插件”部分中使用了许多这些选项。

Options Syntax Drscription
appendTo $( “.selector” ).dialog({ appendTo: “#someElem” }); This option is used to append an element to the dialog.
autoOpen $( “.selector” ).dialog({ autoOpen: false }); Setting this to true makes the dialog box open on initialization.
buttons $( “.selector” ).dialog({ buttons: [ { text: “Ok”, click: function() { $( this ).dialog( “close” ); } } ] }); This option is used to specify the button displayed on the dialog box.
closeOnEscape $( “.selector” ).dialog({ closeOnEscape: false }); If it is set to true, the dialog box will close on pressing the escape key.
closeText $( “.selector” ).dialog({ closeText: “hide” }); Text displayed for the close button
dialogClass $( “.selector” ).dialog({ dialogClass: “alert” }); Used for additional theming of the dialog box.
draggable $( “.selector” ).dialog({ draggable: false }); The dialog will be draggable by the title bar if it is set to true.
height $( “.selector” ).dialog({ height: 400 }); Specifies the height of the dialog box.
hide $( “.selector” ).dialog({ hide: { effect: “explode”, duration: 1000 } }); This option is used to animate the dialog box.
maxHeight $( “.selector” ).dialog({ maxHeight: 600 }); Specifies the maximum height to which the dialog box can be resized.
maxWidth $( “.selector” ).dialog({ maxWidth: 600 }); Specifies the maximum width to which the dialog box can be resized.
minHeight $( “.selector” ).dialog({ m
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值