No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    InfiniteScroll offset property

    Framework
    3
    13
    3810
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • rstoenescu
      rstoenescu Admin last edited by rstoenescu

      @xereda By default, Infinite Scroll triggers “loadMore” when less than one screen height is left to scroll till the end of your list. If you want to change that to some other offset, use offset property. Here’s the description from the documentation:

      Offset (pixels) to bottom of Infinite Scroll container from which the component should start loading more content in advance. Default it’s one container height.

      So just specify a Number which represents how many pixels off the bottom of list should the Infinite Scroll trigger “loadMore”
      Example: :offset="500" – notice we’re using Vue dynamic binding to cast property to Number.

      1 Reply Last reply Reply Quote 0
      • X
        xereda last edited by rstoenescu

        I did not see anything about the “:offset” property in the documentation.

        1 Reply Last reply Reply Quote 0
        • rstoenescu
          rstoenescu Admin last edited by

          0_1479146233530_Screenshot from 2016-11-14 19:56:18.png

          1 Reply Last reply Reply Quote 0
          • X
            xereda last edited by

            0_1479146309101_Captura de Tela 2016-11-14 às 15.58.05.png

            ⬆

            rstoenescu 1 Reply Last reply Reply Quote 0
            • rstoenescu
              rstoenescu Admin @xereda last edited by

              @xereda ?

              1 Reply Last reply Reply Quote 0
              • X
                xereda last edited by xereda

                Excuse me, but what is this “scroll” property? Is this an example only?

                1 Reply Last reply Reply Quote 0
                • rstoenescu
                  rstoenescu Admin last edited by rstoenescu

                  It’s a Vue property that you can use for the Infinite Scroll component. Full example:

                  <quasar-infinite-scroll
                    :handler="loadMore"
                    :offset="700"
                  >
                    ...
                  </quasar-infinite-scroll>
                  
                  1 Reply Last reply Reply Quote 0
                  • X
                    xereda last edited by

                    But there is no reference to the “scroll” property in the documentation, just for the “offset”.

                    1 Reply Last reply Reply Quote 0
                    • rstoenescu
                      rstoenescu Admin last edited by rstoenescu

                      Ah, dammit. I’ve been meaning offset all the time. It’s just my exhaustion having a negative effect. Sorry. Replace scroll with offset in all my previous comments.

                      EDIT: Replaced with correct offset Vue property in all my previous comments.

                      1 Reply Last reply Reply Quote 0
                      • X
                        xereda last edited by

                        No problem. I understand perfectly!
                        I’ll do some simulations.

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post