sniffnet
sniffnet copied to clipboard
`ComboBox` widget for search filters
Is there an existing issue for this?
- [X] I have searched the existing issues.
Describe the solution you'd like
Instead of typing, I was wondering if user could select from the existing domains fetched from the backend(over view page) so user could select directly
Is your feature request related to a problem?
This would save time to go back to overview page and to copy the exact domain name and could select from a dropdown box.
I would like to get started with drop-down but if a dropdown feature exists already I would refer it directly. Let me know the checks!
Thanks!
Hi @Irene-123 and thank you very much for your interest!
Luckily, the latest release of iced introduced a better functionality than a simple dropdown.
The widget you can use is the ComboBox
widget and you can find an example about it here: https://github.com/iced-rs/iced/tree/master/examples/combo_box
This is a feature I planned to introduce but I didn't start yet implementing it, so feel free to work on it.
Ideally, I'd like to have this kind of widget for all the text boxes of the inspect page (app protocol, country, domain, ASN). This will require to store somewhere the collections of available options. Such collections are not statically defined of course but are modified as new packets arrive.
Let me know if you need additional hints.
I'm facing some issues in understanding the code, is there a discord channel or somewhere I can ask silly doubts? : P
Here's their Discord: https://discord.com/invite/3xZJ65GAhd