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

From Akshay Joshi
Subject Re: [pgAdmin][RM5038] Select2 enhancement - Load items on demand (scroll)
Date
Msg-id CANxoLDcumo3DLJbVuz_dFXFdStS+AtPqUdCZA_kJ9=6K8qBZfg@mail.gmail.com
Whole thread Raw
In response to [pgAdmin][RM5038] Select2 enhancement - Load items on demand (scroll)  (Aditya Toshniwal <aditya.toshniwal@enterprisedb.com>)
Responses Re: [pgAdmin][RM5038] Select2 enhancement - Load items on demand (scroll)
List pgadmin-hackers
Thanks, patch applied.

On Tue, Dec 24, 2019 at 1:01 PM Aditya Toshniwal <aditya.toshniwal@enterprisedb.com> wrote:
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"


--
Thanks & Regards
Akshay Joshi
Sr. Software Architect
EnterpriseDB Software India Private Limited
Mobile: +91 976-788-8246

pgadmin-hackers by date:

Previous
From: Akshay Joshi
Date:
Subject: pgAdmin 4 commit: Added support for on-demand loading of items in Selec
Next
From: Aditya Toshniwal
Date:
Subject: Re: [pgAdmin][RM4842] trigger/compound trigger on a partitioned table