Jquery UI:克隆小部件 [英] Jquery UI: clone the widget

查看:85
本文介绍了Jquery UI:克隆小部件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要动态创建Jquery UI小部件。
我的想法是隐藏一个小部件并使用函数clone()来创建它们..但我得到的结果是:示例

I need to dynamically create the Jquery UI widget. My idea is to have a widget hidden and use the function clone() for create them.. but the result I get is this: example

出了什么问题?
提前感谢您的帮助。

What's wrong? Thank you in advance for your help.

推荐答案

这是已知问题。可以在此处找到关联的jQuery UI功能请求。

This is a known problem. The associated jQuery UI feature request can be found here.

此功能需要所有jQuery UI小部件的协作(通过修改其 init()方法)。开发团队现在似乎并不感兴趣,尽管他们将来可能会这样做。

This feature would require cooperation from all the jQuery UI widgets (through modifications to their init() methods). The dev team does not seem to be interested in implementing that now, though they might do so in the future.

这篇关于Jquery UI:克隆小部件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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