Re: Creating control sliders

Aditya Toshniwal <[email protected]>
Newsgroups gmane.comp.db.postgresql.pgadmin.devel
Message-ID <CAM9w-_kbUto4_scr2qLfmDBMBv_rLKg2==+oBo4_WgFoFEXaCg@mail.gmail.com>
Hi Yosry,

You mean this ? It is bootstrap toggle switch.
[image: Screenshot 2019-08-09 at 10.51.51.png]

The code for query history is in web/pgadmin/static/js/sqleditor/history.
It has two parts, entries and details. Entries are generated using
HistoryCollection object. You may need to add flag to HistoryCollection
entries to identify which are internal queries.

For the UI part, you can import 'bootstrap.toggle' in
query_history_entries. Check the usage here -
https://gitbrent.github.io/bootstrap4-toggle/
You can add div above the entries like and on basis of the switch show/hide
the queries.
[image: Screenshot 2019-08-09 at 11.03.16.png]

Let me know if need more help.

On Thu, Aug 8, 2019 at 7:38 PM Yosry Muhammad <[email protected]> wrote:

> Hi hackers,
>
> I am working on a patch introducing improvements and new features to the
> query history. I would like to add a slider controller to show/hide queries
> generated by pgAdmin from the query history. These sliders are used in
> several places such as preferences, table dialogs, etc.
>
> Can someone guide me through this?
>
> Thanks.
> --
> *Yosry Muhammad Yosry*
>
> Computer Engineering student,
> The Faculty of Engineering,
> Cairo University (2021).
> Class representative of CMP 2021.
> https://www.linkedin.com/in/yosrym93/
>


-- 
Thanks and Regards,
Aditya Toshniwal
Software Engineer | EnterpriseDB India | Pune
"Don't Complain about Heat, Plant a TREE"
Screenshot 2019-08-09 at 10.51.51.png (image/png, 24.9 KB) - not displayed
Screenshot 2019-08-09 at 11.03.16.png (image/png, 103.3 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.