The table view list the search container columns from left to right.
Figure 1: The Management Toolbar's table view list the content's information in individual columns.
Follow these steps to configure the Table view:
-
Inside the
<c:choose>
conditional block, add a condition for the list display style (table view type):<c:when test='<%= Objects.equals(displayStyle, "list") %>'> <%-- table view type configuration goes here --%> </c:when>
-
Follow the example below to add the required columns to the conditional block:
Column | Content Options | Example |
---|---|---|
1 | name | <liferay-ui:search-container-column-text cssClass=“content-column name-column title-column” name=“name” truncate=“<%= true %>” value=“<%= rule.getName(locale) %>” /> |
2 | description | <liferay-ui:search-container-column-text cssClass=“content-column description-column” name=“description” truncate=“<%= true %>” value=“<%= rule.getDescription(locale) %>” /> |
3 | create date | <liferay-ui:search-container-column-date cssClass=“create-date-column text-column” name=“create-date” property=“createDate” /> |
4 | actions | <liferay-ui:search-container-column-jsp cssClass=“entry-action-column” path=“/rule_actions.jsp” /> |
Great! Now you know how to implement the Table view!