jQuery UI(RAD / GUI)表单设计器
好吧,我正在研究一个可视化表单设计器,并决定使用jQuery UI作为最终表单widgetset以及设计器本身的widgetset。
我主要担心的是让jQuery wigets“只读”。我有以下想法:
<style type="text/css">
.widget-wrap { position: relative; }
.widget-overlay { position: absolute; left:0; right:0; top:0; bottom:0; /*maybe z-index as well*/ }
</style>
<div class="widget-wrap" id="wdt1">
<button class="jquery-widget">Hello World!</button>
<div class="widget-overlay"><!----></div>
</div>
<script type="text/javascript">
$(function() {
$("button.jquery-widget").button();
});
function widgetLock(){
$("#wdt1 .widget-overlay").show();
}
function widgetRelease(){
$("#wdt1 .widget-overlay").hide();
}
</script>
希望我的榜样有道理:)
我的问题是;
这听起来对你好吗?
你知道更好还是其他方式?
你看到它有什么问题吗?
没有找到相关结果
已邀请:
2 个回复
佬棠
良阑纠苫
以上将在Firefox中工作 单击该按钮会隐藏覆盖div以允许测试窗口小部件,您可以在屏幕上拖动对象,不会实现调整大小逻辑。 DC