Updating the Search Iterator

Once the view type’s display styles are defined, you must update the search iterator to show the selected view type. Follow these steps:

  1. If your management toolbar only has one view type, you can set the displayStyle attribute to the style you defined, otherwise follow the pattern below:

    <liferay-ui:search-iterator
        displayStyle="<%= displayStyle %>"
        markupView="lexicon"
        searchContainer="<%= searchContainer %>"
    />
    

    The displayStyle’s value is set to the current view type.

  2. Save the changes.

Great! You’ve updated your search iterator to use your display styles.

« Implementing the Table ViewFiltering and Sorting Items with the Management Toolbar »
Was this article helpful?
0 out of 0 found this helpful