{
  "meta": {
    "docsUrl": "https://v2.quasar.dev/vue-components/infinite-scroll"
  },

  "props": {
    "offset": {
      "type": "Number",
      "desc": "Distance (pixels) from the end of the content (the start of it in reverse mode) to the visible area of the scroll target at which loading more content starts, in advance",
      "default": "500",
      "category": "behavior"
    },

    "debounce": {
      "extends": "debounce",
      "default": "100"
    },

    "initial-index": {
      "type": "Number",
      "desc": "Initialize the pagination index (used for the @load event)",
      "default": "0",
      "category": "behavior"
    },

    "scroll-target": {
      "extends": "scroll-target"
    },

    "disable": {
      "extends": "disable"
    },

    "reverse": {
      "type": "Boolean",
      "desc": "Scroll area should behave like a messenger - starting scrolled to the end (bottom, or the inline end when horizontal) and loading when reaching the start",
      "category": "behavior"
    },

    "horizontal": {
      "type": "Boolean",
      "desc": "Lay the content out in a row and load more when the scroll target reaches its end sideways (the inline end, so right-to-left languages load from the left); the scroll target must scroll horizontally",
      "category": "behavior|content",
      "addedIn": "v2.34"
    }
  },

  "slots": {
    "default": {
      "extends": "default"
    },

    "loading": {
      "desc": "Slot displaying something while loading content; Example: QSpinner"
    }
  },

  "events": {
    "load": {
      "desc": "Emitted when Infinite Scroll needs to load more data",
      "params": {
        "index": {
          "type": "Number",
          "desc": "The index parameter can be used to make some sort of pagination on the content you load. It takes numeric values starting with 1 and incrementing with each call"
        },
        "done": {
          "type": "Function",
          "desc": "Function to call when you made all necessary updates. DO NOT forget to call it otherwise your loading message will continue to be displayed",
          "params": {
            "stop": {
              "type": "Boolean",
              "desc": "Stops QInfiniteScroll if it's Boolean 'true'; Specify it in case there's nothing more to load"
            }
          },
          "returns": null
        }
      }
    }
  },

  "methods": {
    "poll": {
      "desc": "Checks whether the end of the content is within offset of the visible area and loads more content if necessary",
      "params": null,
      "returns": null
    },

    "trigger": {
      "desc": "Tells Infinite Scroll to load more content, regardless of the scroll position",
      "params": null,
      "returns": null
    },

    "reset": {
      "desc": "Resets calling index to 0",
      "params": null,
      "returns": null
    },

    "stop": {
      "desc": "Stops working, regardless of scroll position",
      "params": null,
      "returns": null
    },

    "resume": {
      "desc": "Starts working. Checks scroll position upon call and if trigger is hit, it loads more content",
      "params": null,
      "returns": null
    },

    "setIndex": {
      "desc": "Overwrite the current pagination index",
      "params": {
        "newIndex": {
          "type": "Number",
          "desc": "New pagination index",
          "required": true
        }
      },
      "returns": null
    },

    "updateScrollTarget": {
      "extends": "updateScrollTarget"
    }
  }
}
