Uploaded image for project: 'PUBLIC - Liferay Alloy UI'
  1. PUBLIC - Liferay Alloy UI
  2. AUI-1541

AUI tree view does not allow children array to be reused

    Details

      Description

      If you initialize a Javascript array containing the children:

      var reusedChildren = [
          {
              label: 'parent',
              children: [
                  {
                      label: 'child'
                  }
              ]
          }
      ];
      

      Reusing the array for two different trees does not work if the first tree uses lazyLoad: true (default).

      new Y.TreeView({
          boundingBox: '#treefirst',
          children: reusedChildren
      }).render();
      
      new Y.TreeView({
          boundingBox: '#treesecond',
          children: reusedChildren
      }).render();
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              eduardo.lundgren Eduardo Lundgren (Inactive)
              Reporter:
              minhchau.dang Minhchau Dang
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                7 years, 20 weeks, 5 days ago

                  Packages

                  Version Package
                  2.0.x
                  1.5.x
                  master
                  master-deprecated
                  3.0.x
                  1.5.2.17
                  2.0.0.25-deprecated
                  3.1.x