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

Adding a getChildrenLength support for when the child nodes are still loading

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.5.3
    • Component/s: Tree
    • Labels:
      None

      Description

      Since the Tree View can load the "children" attribute asynchronously, sometimes the developer may want to know the length of a node's children. eg.:

      treeNode.get('children').length

      But if this piece of code is called before the 50ms delay that takes to set the children attribute when lazyLoad=true, then .get('children').length would incorrectly return 0. Only because the children attribute was not yet set.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              bruno.basto Bruno Basto (Inactive)
              Reporter:
              bruno.basto Bruno Basto (Inactive)
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                9 years, 5 weeks, 4 days ago

                  Packages

                  Version Package
                  1.5.3