Pull to refresh

The QPullToRefresh is a component that allows the user to pull down in order to refresh page content (or retrieve the newest content).

Installation


// quasar.conf.js

return {
  framework: {
    // NOT needed if using auto-import feature:
    components: [
      'QPullToRefresh'
    ]
  }
}

Usage

WARNING

In your @refresh function, don’t forget to call the passed in done() function when you have finished loading more data.

To refresh, pull down (with mouse or through finger touch) on the content below when the inner scroll position is the top.

Basic



Custom icon



TIPS

  • If using a QLayout, then it’s recommended that you put QPullToRefresh as direct child of QPage and wrap your page content with it.
  • If you change the parent of this component, don’t forget to call updateScrollTarget() on the QPullToRefresh Vue reference.

QPullToRefresh API