如何启用布局管理器上的句柄?
给出以下 javascript 代码:
var layoutFull = new YAHOO.widget.Layout({
units: [
{
position: 'left',
header: 'Right',
width: 300,
resize: true,
collapse: true,
scroll: true,
body: 'right1',
animate: true
},
{
position: 'center',
body: 'Da center...'
}
]
});
layoutFull.render();
我可以拥有带有可折叠左窗格的完整布局。但左侧和中心部分之间有一条细线。我希望能够拖动这条线来调整左侧和中心部分的大小,如下例所示: http://developer.yahoo.com/yui/examples/layout/page_layout_source.html。
我应该在布局配置中启用哪个属性?查看示例或 API 文档并没有给我带来任何运气。
Given the following javascript code :
var layoutFull = new YAHOO.widget.Layout({
units: [
{
position: 'left',
header: 'Right',
width: 300,
resize: true,
collapse: true,
scroll: true,
body: 'right1',
animate: true
},
{
position: 'center',
body: 'Da center...'
}
]
});
layoutFull.render();
I can have a full layout with a collapsible left pane. But there is a fine line between left and center parts. I would like to be able to drag this line for resizing both left and center part as in this example : http://developer.yahoo.com/yui/examples/layout/page_layout_source.html.
Which property should I enable in the layout configuration ? Looking at sample or the API doc didn't give me any luck.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我想知道是否需要包含以下两个库......
如果没有“看到”html,就很难猜测。将这两者相加可能会产生一些“魔法”。只是一种预感。 :)
I'm wondering if the following two libraries need to be included ...
Without 'seeing' the html, its rather hard to guess. Some 'magic' might occur by adding these two. Just a hunch. :)