summaryrefslogtreecommitdiffstats
path: root/native
diff options
context:
space:
mode:
Diffstat (limited to 'native')
-rw-r--r--native/src/widget/text_input.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/native/src/widget/text_input.rs b/native/src/widget/text_input.rs
index 1ca5ccf2..a81cfaed 100644
--- a/native/src/widget/text_input.rs
+++ b/native/src/widget/text_input.rs
@@ -322,6 +322,10 @@ impl Id {
pub fn new(id: impl Into<std::borrow::Cow<'static, str>>) -> Self {
Self(widget::Id::new(id))
}
+
+ pub fn unique() -> Self {
+ Self(widget::Id::unique())
+ }
}
pub fn focus<Message: 'static>(id: Id) -> Command<Message> {