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

Tree is built without children nodes (aui-tree-view)

    Details

      Description

      Steps to reproduce

      YUI().use(
                                           'aui-tree-view',
                                           function(Y) {
                                             // Create an array object for the tree root and child nodes
                                             var children = [
                                               {
                                                 children: [
                                                   {
                                                     label: 'File X'
                                                   },
                                                   {
                                                     label: 'File Y'
                                                   },
                                                   {
                                                     label: 'File Z'
                                                   }
                                                 ],
                                                 expanded: true,
                                                 label: 'Root'
                                               }
                                             ];
                                          
                                             // Create a TreeView Component
                                             new Y.TreeView(
                                               {
                                                 boundingBox: '#myTreeView',
                                                 children: children
                                               }
                                             ).render();
                                           }
                                          );
      
      
      • Sign out.
      • Browse the page as guest user.

      Observed behavior
      Only 'Root' node is generated for the tree.

      Expected behavior
      The complete tree is generated: 'Root' node with three child-nodes: 'File X', 'File Y', 'File Z'

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              summer.zhang Summer Zhang
              Reporter:
              sergio.alonso Sergio Alonso
              Participants of an Issue:
              Recent user:
              Rafaela Nascimento
              Engineering Assignee:
              Georgel Vasile Pop
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                11 weeks, 3 days ago

                  Packages

                  Version Package
                  7.2.10 DXP FP14
                  7.2.10.5 DXP SP5
                  7.2.X
                  7.3.X
                  7.4.2 CE GA3 DXP 7,4
                  Master