forked from liferay/liferay-portal
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LPD-40036 Make Taglib Sample Portlet extensible so it can be used wit…
…h other taglibs
- Loading branch information
1 parent
f143f2c
commit 2aec476
Showing
5 changed files
with
74 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
...ray/frontend/taglib/sample/web/internal/display/context/FrontendSampleDisplayContext.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/** | ||
* SPDX-FileCopyrightText: (c) 2024 Liferay, Inc. https://liferay.com | ||
* SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06 | ||
*/ | ||
|
||
package com.liferay.frontend.taglib.sample.web.internal.display.context; | ||
|
||
import com.liferay.frontend.taglib.clay.servlet.taglib.util.TabsItem; | ||
import com.liferay.frontend.taglib.clay.servlet.taglib.util.TabsItemListBuilder; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* @author Antonio Ortega | ||
*/ | ||
public class FrontendSampleDisplayContext { | ||
|
||
public List<TabsItem> getTabsItems() { | ||
if (_tabsItems != null) { | ||
return _tabsItems; | ||
} | ||
|
||
_tabsItems = TabsItemListBuilder.add( | ||
tabsItem -> { | ||
tabsItem.setActive(true); | ||
tabsItem.setLabel("Search Paginator"); | ||
tabsItem.setPanelId("search_paginator"); | ||
} | ||
).build(); | ||
|
||
return _tabsItems; | ||
} | ||
|
||
private List<TabsItem> _tabsItems; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters