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

TreeNodeIO added paginator option to support lazy loading nodes

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.1
    • Component/s: JavaScript
    • Labels:
      None

      Description

      TreeNodeIO added paginator option to support lazy loading nodes.

      The paginator option works with the io option adding two extra IO data parameters to the request to let the backend limit the results making possible the paginator.

      One example how to use the paginator (could be passed or to the TreeView or direct to the TreeNodeIO):
      ...
      io: '/c/portal/get_categories',
      paginator: {
      limit: 3,
      offset: 0,
      limitParam: 'start',
      offsetParam: 'end'
      }
      ...

      This example will generate a request to the URL:

      http://localhost:8080/c/portal/get_categories?limit=3&offset=0

      Then:

      http://localhost:8080/c/portal/get_categories?limit=3&offset=10

      Then:

      http://localhost:8080/c/portal/get_categories?limit=3&offset=20

      ...

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              11 years, 23 weeks, 5 days ago

                Packages

                Version Package
                1.0.1