mini.OutlookMenu

Outlook风格菜单导航控件。

Extend

mini.Control

Examples

OutlookMenu

Properties

NameTypeDescriptionDefault Set? Get? Tag?
url String 数据地址 √√√
idField String 值字段。 id √√√
textField String 节点文本字段 text √√√
iconField String 图标字段 iconCls √√√
parentField String 父节点字段 pid √√√
resultAsTree Boolean url数据是否列表 true √√√
dataField String 数据列表字段 √√√
imgPath String 节点图片路径。节点可以设置"img"属性。 √√√

Methods

NameParameterDescriptionReturn
load ( Array ) 加载树形数据。
getSelected ( ) 获取选中项。
selectNode ( node ) 选中节点
loadList ( Array, idField, parentField ) 加载列表数据。比如:tree.loadList(list, "id", "pid")
getList ( ) 获取节点数组。 Array
findNodes ( fn, scope ) 查找节点数据。如:
var nodes = tree.findNodes(function(node){
    if(node.name.indexOf("abc") != -1) return true;
});

Events

NameEventObjectDescription
itemclick
{
    sender: Object,
    item: Object
}
项点击时发生
itemselect
{
    sender: Object,
    item: Object
}
项选中时发生