Forms · NumberInput label: the name assistive technology reads, drawn nowhere

This commit is contained in:
ZacharyZhang-NY committed 2026-10-05 12:34:19 -04:00
1 parent 47caebdd36
commit 718617939e
3 files changed
+22

No files matched your search

+9
View File
@@ -204,6 +204,10 @@ impl TextInput {
&self.placeholder
}
pub fn label_text(&self) -> &SharedString {
&self.label
}
pub fn selection(&self) -> Range<usize> {
self.selection.clone()
}
@@ -221,6 +225,11 @@ impl TextInput {
cx.notify();
}
pub fn set_label(&mut self, text: impl Into<SharedString>, cx: &mut Context<Self>) {
self.label = text.into();
cx.notify();
}
pub fn set_masked(&mut self, masked: bool, cx: &mut Context<Self>) {
self.masked = masked;
cx.notify();