留言板

Aui treeview - expand and collapse not enabled with Liferay 6.1.1

Raj Kumar Kulasekaran,修改在11 年前。

Aui treeview - expand and collapse not enabled with Liferay 6.1.1

New Member 帖子: 17 加入日期: 12-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,修改在11 年前。

RE: Aui treeview - expand and collapse not enabled with Liferay 6.1.1

New Member 帖子: 17 加入日期: 12-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,修改在11 年前。

RE: Aui treeview - expand and collapse not enabled with Liferay 6.1.1 (答复)

New Member 帖子: 17 加入日期: 12-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