Including Actions in the Management Bar
While an actions menu is typically included with each search container result, you can also include these actions in the management bar. This keeps everything organized within the same UI. This update adds a checkbox next to each search container result, as well as adds one in the management bar itself to select all results. The actions are displayed when a checkbox is checked—individual or select all—and hidden from view otherwise.
Follow these steps to include actions in your management bar:
<liferay-frontend:management-bar>tag to include the checkbox and provide the search container’s ID:
<liferay-frontend:management-bar includeCheckBox="<%= true %>" searchContainerId="mySearchContainerId" >
After the closing
</liferay-frontend:management-bar-filters>tag, add the
Use the available management bar button taglibs (e.g.
management-bar-button) to build the action buttons for your app’s management bar. A code snippet from the Site admin portlet is shown below: