+ -
当前位置:首页 → 问答吧 → 选项卡、树展开事件

选项卡、树展开事件

时间:2010-12-24

来源:互联网

不知道我的标题是否正确。现在我的需求是这样的,我用Ext.Viewport布局右边是个一个选项卡似的东西
JScript code

layout : 'accordion',
layoutConfig : {
  animate : true
}



鼠标点击是它会展开或者是收起。我想了解一下,这个事件封装在哪里?因为我有一个这样的需求,比如我里面定义了10个选项卡,它对于了左边有10个按钮,我点击按钮1的时候,选项卡1会展开;我点击按钮2的时候,选项卡2会展开。不知道我的问题描述的清楚没有。

举个简单的例子吧,我右边有10个数,比如这10个树我是用Ext.tree.AsyncTreeNode写的。左边有10个按钮对应,当我点击按钮1的时候,第一个树会展开;我点击按钮2的时候第二个树会展开。
我想知道展开选项卡或是是树的事件是什么?封装在哪里?
如果有实际代码例子的话更要谢谢大家了!

作者: space_Wind   发布时间: 2010-12-24

通过单击按钮来触发选项卡的展开或收起?

作者: zoujp_xyz   发布时间: 2010-12-30

TreeNode.expand( [Boolean deep], [Boolean anim], [Function callback] ) : void
Expand this node.
Parameters:
deep : Boolean
(optional) True to expand all children as well
anim : Boolean
(optional) false to cancel the default animation
callback : Function
(optional) A callback to be called when expanding this node completes (does not wait for deep expand to complete). Called with 1 parameter, this node.
Returns:
void

随手翻了下EXT的API

作者: KK3K2005   发布时间: 2010-12-30

热门下载

更多