如何设置jQuery UI对话框的默认值 [英] How to set jQuery UI dialog defaults

查看:137
本文介绍了如何设置jQuery UI对话框的默认值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何设置jQuery UI对话框的默认值? 例如,这就是我在jQuery UI datepicker中设置默认值的方式:

How do I set the default values for the jQuery UI dialog? For example, this is how I set the defaults in the jQuery UI datepicker:

$.datepicker.setDefaults({ dateFormat: 'dd/mm/yy' });

对话框中找不到相同的功能 文档

I couldn't find the same functionality in the dialog documentation

推荐答案

我找到了解决方法

$.extend($.ui.dialog.prototype.options, { modal: true, width: 650 });

这篇关于如何设置jQuery UI对话框的默认值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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