现在的位置: 首页 > 综合 > 正文

EXT 组件一些属性与方法(Tree)

2013年04月18日 ⁄ 综合 ⁄ 共 732字 ⁄ 字号 评论关闭
1、Ext.tree.TreePanel

 主要配置项:
 root:树的根节点。
 rootVisible:是否显示根节点,默认为true。
 useArrows:是否在树中使用Vista样式箭头,默认为false。
 lines:是否显示树线,默认为true。
 loader:树节点的加载器,默认为Ext.tree.TreeLoader。
 selModel:树的选择模式,默认为Ext.tree.DefaultSelectionModel。
 pathSeparator:树节点路径的分隔符,默认为“/”。
 singleExpand:是否一次只展开树中的一个节点,默认为true。
 requestMethod:请求方法,可选值有POST、GET。
 containerScroll:是否将树形面板注册到滚动管理器ScrollManager中。

 主要方法:
 collapseAll():收缩所有树节点
 expandAll():展开所有树节点
 getRootNode():获取根节点
 getNodeById(String
id):获取指定id的节点
 expand(
[Boolean deep], [Boolean anim], [Function callback], [Object scope] )
 expandPath(
String path, [String attr], [Function callback] )
 getChecked(
[String attribute], [TreeNode startNode] )
 selectPath(
String path, [String attr], [Function callback] )
 getSelectionModel():


2、Ext.data.Node
 

抱歉!评论已关闭.