input: Expose TextInput::disabled (#81)
This commit is contained in:
parent
97d139f9ec
commit
6e58edd349
1 changed files with 4 additions and 0 deletions
|
|
@ -296,6 +296,10 @@ impl TextInput {
|
||||||
self.text.clone()
|
self.text.clone()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn disabled(&self) -> bool {
|
||||||
|
self.disabled
|
||||||
|
}
|
||||||
|
|
||||||
pub fn focus(&self, cx: &mut ViewContext<Self>) {
|
pub fn focus(&self, cx: &mut ViewContext<Self>) {
|
||||||
self.focus_handle.focus(cx);
|
self.focus_handle.focus(cx);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue