Skip to content

Commit

Permalink
expose TextInput::disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
flisky committed Jul 29, 2024
1 parent a3df086 commit 91f7d4a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/ui/src/input/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,10 @@ impl TextInput {
self.text.clone()
}

pub fn disabled(&self) -> bool {
self.disabled
}

pub fn focus(&self, cx: &mut ViewContext<Self>) {
self.focus_handle.focus(cx);
}
Expand Down

0 comments on commit 91f7d4a

Please sign in to comment.