通过
this.comp(‘breadcrumb’)获取tree下的
$UI/system/components/bootstrap/breadcrumb/breadcrumb
组件
通过on(‘onClick’,function(evt){evt.data….}) bind事件后通过evt.data可以获得相关的数据
方法1.
this.comp('tree1').getBar().on('onClick',function(evt){
debugger;
evt.data
})
方法2.
</pre>
<pre>
var tree = this.getIDByXID("tree1");
var xid = $("#"+tree).find(".breadcrumb").attr("xid");
this.comp(xid).on('onClick',function(evt){var label = evt.data.label;});</pre>
<pre>
评一波