Dynamic columns in liferay-ui:search-container?

前端 未结 1 714
醉话见心
醉话见心 2021-02-13 10:24

I have tried the liferay-ui:search-container to fetch and display the database table records on UI in a table/grid format. By using the liferay-ui:search-cont

1条回答
  •  日久生厌
    2021-02-13 10:48

    This can be achieved by adding a configuration page to your portlet.

    You can develop portlet configuration page which can have required options to be configured and save as portlet preferences.

    Later on while displaying the search container you can retrieve the portlet preferences and display only those columns which were selected in the configuration form.

    Here is a link on how to develop the portlet configuration using portlet preferences: Implementing Configurable Portlet Preferences

    0 讨论(0)
提交回复
热议问题