Re: Creating control sliders

From: Yosry Muhammad <yosrym93(at)gmail(dot)com>
To: Aditya Toshniwal <aditya(dot)toshniwal(at)enterprisedb(dot)com>
Cc: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: Creating control sliders
Date: 2019-08-09 09:39:47
Message-ID: CAFSMqn-U4+grW5tPTa1UY7ruCi4NOpzaaWTmU5CJoF5QvbKJzQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Hi Aditya,

I am already done with the functionality al what's left is setting up the
toggle switch. Will start working on it, thanks!

On Fri, Aug 9, 2019, 7:37 AM Aditya Toshniwal <
aditya(dot)toshniwal(at)enterprisedb(dot)com> wrote:

> 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 <yosrym93(at)gmail(dot)com> 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"
>

In response to

Browse pgadmin-hackers by date

  From Date Subject
Next Message Aditya Toshniwal 2019-08-09 13:44:53 pgAdmin 4 commit: Replace electron-forge with electron-builder as elect
Previous Message Akshay Joshi 2019-08-09 06:15:47 Re: Query Tool - Cell Double Click Fix