Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-115157

Modify MenuItem API so list of MenuItems can be implemented in React TreeView component

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Completed
    • Affects Version/s: None
    • Fix Version/s: Master
    • Component/s: Wiki
    • Labels:
      None

      Description

      In order to successfully migrate AUI tree-view to React TreeView in wiki-navigation (task https://issues.liferay.com/browse/LPS-114189), MenuItem Java API needs to be modified.

      To implement new solution in React, menuItems List from this file https://github.com/liferay/liferay-portal/blob/master/modules/apps/wiki/wiki-navigation-web/src/main/resources/META-INF/resources/tree_menu/view.jsp should be modified in Java.
      It should be constructed as below:
      label should be renamed to name
      icon and id fields should be added
      children array

      This is the expected menuItems list 

      const menuItems = [
      	{
      		id: 1,
      		name: 'test page 1',
      		children: [
      			{
      				id: 44,
      				name: 'test subpage 1',
      			},
      		],
      	},
      	{
      		id: 2,
      		name: 'test page 2',
      	},
      ];
      

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              support-lep@liferay.com SE Support
              Reporter:
              mateo.mustapic Mateo Mustapić (Inactive)
              Engineering Assignee:
              Ambrin Chaudhary
              Recent user:
              Rubén Heras
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  Master