[Koha-bugs] [Bug 32474] Implement infinite scroll in vue-select

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Jan 9 13:11:57 CET 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32474

Matt Blenkinsop <matt.blenkinsop at ptfs-europe.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #144720|0                           |1
        is obsolete|                            |

--- Comment #7 from Matt Blenkinsop <matt.blenkinsop at ptfs-europe.com> ---
Created attachment 145143
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=145143&action=edit
Bug 32474: Ajax based infinite scroll selects

I have created a reuseable component called InfiniteScrollSelect which allows
v-selects to load options in a paginated manner through Ajax requests rather
than making expensive Ajax calls when the select box is first opened. All
v-selects that are likely to need this functionality have been updated for
Agreements, Licenses, Packages and Vendors.

Test Plan:
To test this requires adding enough dummy data to show the pagination fully. I
have written a script that does this, please see the attachments if you wish to
use this.
1) Navigate to a window that offers a dropdown menu for either Vendors,
Agreements, Licenses, Packages.
2) Observe that all data is already pre-loaded into the options list and only
one request is made for this data regardless of data size
3) Apply patch
4) Navigate to the same select box and observe that only the first 20 values
are available with paginated Ajax requests being made as you scroll down

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list