From: Hannes Laimer <h.laimer@proxmox.com>
To: yew-devel@lists.proxmox.com
Subject: [yew-devel] [PATCH yew-widget-toolkit v2 1/2] number: add tooltip to number field
Date: Thu, 9 Oct 2025 13:25:01 +0200 [thread overview]
Message-ID: <20251009112502.312917-2-h.laimer@proxmox.com> (raw)
In-Reply-To: <20251009112502.312917-1-h.laimer@proxmox.com>
Signed-off-by: Hannes Laimer <h.laimer@proxmox.com>
---
src/widget/form/number.rs | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/widget/form/number.rs b/src/widget/form/number.rs
index 80f7f6c..ad1a3cd 100644
--- a/src/widget/form/number.rs
+++ b/src/widget/form/number.rs
@@ -368,6 +368,11 @@ pub struct Number<T: NumberTypeInfo> {
#[builder_cb(IntoEventCallback, into_event_callback, (String, Option<T>))]
#[prop_or_default]
pub on_input: Option<Callback<(String, Option<T>)>>,
+
+ /// The tooltip.
+ #[prop_or_default]
+ #[builder(IntoPropValue, into_prop_value)]
+ pub tip: Option<AttrValue>,
}
impl<T: NumberTypeInfo> Default for Number<T> {
--
2.47.3
_______________________________________________
yew-devel mailing list
yew-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/yew-devel
next prev parent reply other threads:[~2025-10-09 11:25 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-09 11:25 [yew-devel] [PATCH yew-widget-toolkit v2 0/2] use Schema to populate field properties Hannes Laimer
2025-10-09 11:25 ` Hannes Laimer [this message]
2025-10-09 11:51 ` [yew-devel] [PATCH yew-widget-toolkit v2 1/2] number: add tooltip to number field Dominik Csapak
2025-10-09 11:54 ` Hannes Laimer
2025-10-09 11:25 ` [yew-devel] [PATCH yew-widget-toolkit v2 2/2] form: add schema() builder funtion to checkbox, number and field Hannes Laimer
2025-10-09 11:30 ` [yew-devel] [PATCH yew-widget-toolkit v2 0/2] use Schema to populate field properties Dietmar Maurer
2025-10-09 13:32 ` [yew-devel] superseded: " Hannes Laimer
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=20251009112502.312917-2-h.laimer@proxmox.com \
--to=h.laimer@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