掲示板

Tab Menu

10年前 に Muthu RP によって更新されました。

Tab Menu

New Member 投稿: 17 参加年月日: 13/05/02 最新の投稿
Hi guys,
I am new to liferay, please can anyone help out how to use tab menu in liferay pages or web content.

Thanks
thumbnail
10年前 に Bart Simpson によって更新されました。

RE: Tab Menu

Liferay Master 投稿: 522 参加年月日: 11/08/29 最新の投稿
You'll have to create tabs using AUI component http://deploy.alloyui.com/api/classes/Tab.html
Or you can use navigation portlet and design it in the from of tabs using script and css
thumbnail
10年前 に Tejas patel によって更新されました。

RE: Tab Menu

Junior Member 投稿: 71 参加年月日: 12/01/24 最新の投稿
Hey Muthu,

Use below code to create tabs In jsp.

<portlet:renderurl var="changeTabURL">
	<portlet:param name="action" value="changeTab" />
</portlet:renderurl>
<liferay-ui:tabs names="tab1,tab2,tab3,tab4,tab5" param="clickedTab" url="<%= changeTabURL.toString() %>" />



And in controller you can check which tab is clicked based on that you set the view as below



       if (ParamUtil.getString(renderRequest, "clickedTab").equalsIgnoreCase("tab1"))
        {
            return tab1;
        }