input: Expose TextInput::disabled (#81)

This commit is contained in:
尹吉峰 2024-07-29 18:51:46 +08:00 committed by GitHub
parent 97d139f9ec
commit 6e58edd349
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);
}