* [yew-devel] [PATCH yew-widget-toolkit] widget: search dropdown: enable hovering by default
@ 2025-05-22 8:37 Dominik Csapak
0 siblings, 0 replies; only message in thread
From: Dominik Csapak @ 2025-05-22 8:37 UTC (permalink / raw)
To: yew-devel
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-05-22 8:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-05-22 8:37 [yew-devel] [PATCH yew-widget-toolkit] widget: search dropdown: enable hovering by default Dominik Csapak
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