掲示板

liferay-ui- tabs with affix

9年前 に shankardayal vijayakumar によって更新されました。

liferay-ui- tabs with affix

Junior Member 投稿: 49 参加年月日: 14/03/22 最新の投稿
Hi all,

please guide me to achieve affix in liferay ui tabs. for reference, i have found the example for navigation bar, the link is as follows
http://alloyui.com/examples/affix

thanks in advance
thumbnail
9年前 に Andew Jardine によって更新されました。

RE: liferay-ui- tabs with affix (回答)

Liferay Legend 投稿: 2416 参加年月日: 10/12/22 最新の投稿
You would likely need to use a JSP hook and alter the JSPs used by the tag lib. You can find them under /html/taglib/ui/tabs. If you hook those files, then you can add whatever markup you like.
9年前 に shankardayal vijayakumar によって更新されました。

RE: liferay-ui- tabs with affix (回答)

Junior Member 投稿: 49 参加年月日: 14/03/22 最新の投稿
thank you andrew jardine

and i solved it by giving data-spy="affix" and data-offset-top="200" in an id. inside the tabs start.jsp page using hooks.

and the script i added is
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/2.3.2/js/bootstrap.min.js"></script>

and the style

.affix{
top: 100px; /* Set the top position of pinned element */
}

thank you again.,