使用范围:UI2
Contents
component Tree ($UI/system/components/justep/tree/tree) extends List
Tree
Constructor Top
Tree () | |||
Tree ( options) |
Properties Top
string |
rootLabel
tree根节点名 |
Attributes Top
string |
class
组件class | ||
string |
labelColumn
导航中显示的列 | ||
string |
rootLabel
tree根节点名 | ||
string |
xid
组件标示 |
Methods Top
Object | get (String name) | |
Breadcrumb | getBar () | |
void | set (json arg) |
Events Top
void | onBeforeLoadChildren (BeforeLoadChildrenEvent event) | |
void | onCustomLoadChildren (CustomLoadChildrenEvent event) |
Constructor details
Top
public
Tree
()
Tree
public
Tree
( options)
构造函数
Inherited from ViewComponent
参数options格式类似{parent:xx, config:{}},parent是组件的父节点,允许为空或不指定,config是组件的参数选项
public
Tree
()
Tree
public
Tree
( options)
构造函数
Inherited from ViewComponent
参数options格式类似{parent:xx, config:{}},parent是组件的父节点,允许为空或不指定,config是组件的参数选项
Properties Detail Top
public
string
rootLabel
tree根节点名
Attributes Detail Top
public
string
class
组件class
基础样式: x-tree(必须) 其他: x-inner-scroll(list内部出滚动条样式,不使用此class根据内容自增长) 内部其他class说明: x-tree-template:标示对应节点下的内容是模板,会根据data数据进行生成显示 x-tree-link:切换树的节点,点击后进入子节点
public
string
labelColumn
导航中显示的列
public
string
rootLabel
tree根节点名
public
string
xid
组件标示
Methods Detail Top
public
Object
get
(String name)
获取属性值
public
Breadcrumb
getBar
()
获取导航的Breadcrumb组件
public
void
set
(json arg)
设置属性值
Events Detail Top
[回调型事件]加载子数据前,可以设置cancel=true禁止加载
[回调型事件]自定义加载子数据