jQuery MiniUI
标题:
如何在一个动态添加的面板上,追加个按钮?
[打印本页]
作者:
wslfriend
时间:
2013-9-10 16:42:32
标题:
如何在一个动态添加的面板上,追加个按钮?
<div id="divFrame" class="mini-layout" style="width:300px;height:300px">
</div>
<script type="text/javascript"> mini.parse(); var myFrame = mini.get("divFrame"); var obj = new Object(); obj.region = "west"; obj.width = "200"; obj.expanded = false; obj.showCollapseButton = false; obj.showSplit = true; obj.innerText = "aaa"; obj.splitSize = "6"; obj.visible = true; obj.showHeader = false; obj.maxWidth = 250; obj.minWidth = 100; obj.innerHTML =
"<a>sadfasdf</a>";
myFrame.addRegion(obj, 0);
var obj2 = new Object(); obj2.region = "east"; obj2.width = "200"; obj2.expanded = false; obj2.showCollapseButton = false; obj2.visible = true; obj2.showHeader = false; obj2.maxWidth = 250; obj2.minWidth = 100; myFrame.addRegion(obj2, 1);
myFrame.updateRegion("west", { visible: true }); myFrame.updateRegion("east", { visible: true }); </script>
//标红的这段话无效果。 我的目的,就是在添加的面板内,放置一个BUTTON或者HREF。请问如何实现?
作者:
wslfriend
时间:
2013-9-10 16:55:22
搞定了。。。。getRegionBodyEl("west") 即可。
欢迎光临 jQuery MiniUI (http://miniui.com/discuss/)
Powered by Discuz! X2