[pgAdmin][RM5038] Select2 enhancement - Load items on demand (scroll) - Mailing list pgadmin-hackers

From Aditya Toshniwal
Subject [pgAdmin][RM5038] Select2 enhancement - Load items on demand (scroll)
Date
Msg-id CAM9w-_nEN_PK4Mn+9hyLz-ZC2MGp1XGDjx-1L0J=TCQOOUfxBQ@mail.gmail.com
Whole thread Raw
Responses Re: [pgAdmin][RM5038] Select2 enhancement - Load items on demand (scroll)  (Akshay Joshi <akshay.joshi@enterprisedb.com>)
List pgadmin-hackers
Hi Hackers,

Attached is the patch to enhance select2 used in pgAdmin. The select2 dropdown will show only a few items when opened initially. On scrolling it will show others. Searching will work as before. This will reduce the number of DOM nodes on page.
Note that, individual controls can disable the behaviour if desired by passing onDemandLoad:false for select2 options. It is enabled by default.

Kindly review.

--
Thanks and Regards,
Aditya Toshniwal
pgAdmin Hacker | Sr. Software Engineer | EnterpriseDB India | Pune
"Don't Complain about Heat, Plant a TREE"
Attachment

pgadmin-hackers by date:

Previous
From: Aditya Toshniwal
Date:
Subject: [pgAdmin][RM5024] Refactoring SQL of Functions and Procedures.
Next
From: Aditya Toshniwal
Date:
Subject: [pgAdmin][RM4842] trigger/compound trigger on a partitioned table