From: Dominik Csapak <d.csapak@proxmox.com>
To: yew-devel@lists.proxmox.com
Subject: [yew-devel] [PATCH yew-widget-toolkit] widget: search dropdown: enable hovering by default
Date: Thu, 22 May 2025 10:37:33 +0200 [thread overview]
Message-ID: <20250522083733.776968-1-d.csapak@proxmox.com> (raw)
Not highlighting the hovered item in a selection context is rather
unusual, so enable it here by default.
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
src/widget/search_dropdown.rs | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/widget/search_dropdown.rs b/src/widget/search_dropdown.rs
index f9f0d76..c099066 100644
--- a/src/widget/search_dropdown.rs
+++ b/src/widget/search_dropdown.rs
@@ -142,6 +142,7 @@ impl<S: DataStore + 'static> SearchDropdown<S> {
DataTable::new(columns, args.store.clone())
.max_height(CssLength::Em(20.0))
+ .hover(true)
.show_header(false)
.on_row_click({
let args = args.clone();
@@ -176,6 +177,7 @@ impl<S: DataStore + 'static> SearchDropdown<S> {
RenderFn::new(move |args: &SearchDropdownRenderArgs<S>| {
DataTable::new(columns.clone(), args.store.clone())
.max_height(CssLength::Em(20.0))
+ .hover(true)
.header_focusable(false)
.on_row_click({
let args = args.clone();
--
2.39.5
_______________________________________________
yew-devel mailing list
yew-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/yew-devel
reply other threads:[~2025-05-22 8:38 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250522083733.776968-1-d.csapak@proxmox.com \
--to=d.csapak@proxmox.com \
--cc=yew-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal