diff --git a/src/widget/number_input.rs b/src/widget/number_input.rs index 6667cf5f..44af0e99 100644 --- a/src/widget/number_input.rs +++ b/src/widget/number_input.rs @@ -298,6 +298,13 @@ where self.class = class.into(); self } + + /// Sets the [`Id`] of the underlying [`TextInput`]. + #[must_use] + pub fn id(mut self, id: impl Into) -> Self { + self.content = self.content.id( id.into() ); + self + } } impl<'a, T, Message, Theme, Renderer> Widget