论坛

主页 » Alloy UI » English

组合视图 统一视图 树状图
讨论主题 [ 上一个 | 下一个 ]
toggle
Raj Kumar Kulasekaran
Aui treeview - expand and collapse not enabled with Liferay 6.1.1
2013年3月11日 上午8:26
答复

Raj Kumar Kulasekaran

等级: New Member

帖子: 17

加入日期: 2012年4月19日

最近的帖子

Hi,

I am trying to use AUI treeview on Liferay 6.1.1 GA 2

code :
<div id='<portlet:namespace/>treeTab'>
<ul id='<portlet:namespace/>tree'>
<LI><span>root</span>
<ul>
<li><span>child1</span>
<ul>
<li><span>child2<span></li>
</ul>
</li>
</ul>
</LI>
</div>
<aui:script>
AUI().ready('aui-tabs','aui-tree-view',function(A) {

var tree1 = new A.TreeView({
type: 'normal',
boundingBox: '#<portlet:namespace/>treeTab',
contentBox: '#<portlet:namespace/>tree',


}).render();

</aui:script>

The tree view is shown but I could not expand the tree.

The same code works with Liferay 6.1.0 GA1

Is there any thing which needs to be added to make this code work on 6.1.1 GA2?

Thanks in advance.
Raj Kumar Kulasekaran
RE: Aui treeview - expand and collapse not enabled with Liferay 6.1.1
2013年3月11日 下午11:15
答复

Raj Kumar Kulasekaran

等级: New Member

帖子: 17

加入日期: 2012年4月19日

最近的帖子

In Liferay 6.1.0 the following classes are getting added to the <li> tag
yui3-widget aui-component aui-tree-data aui-tree-node

but not with Liferay 6.1.1.

Is there any configuration which needs to be added to the tree to make this happen?
Raj Kumar Kulasekaran
RE: Aui treeview - expand and collapse not enabled with Liferay 6.1.1
2013年3月11日 下午11:57
答复

Raj Kumar Kulasekaran

等级: New Member

帖子: 17

加入日期: 2012年4月19日

最近的帖子

Temporarily fixed it by adding class to all the <li> tags in my markup manually.

<li class='yui3-widget aui-component aui-tree-data aui-tree-node'>

Hope this would work without any issues atleast in the next version