Focus text inputs in todos example
This commit is contained in:
parent
52f84e51e9
commit
744edbd6c1
3 changed files with 31 additions and 5 deletions
|
|
@ -322,6 +322,10 @@ impl Id {
|
|||
pub fn new(id: impl Into<std::borrow::Cow<'static, str>>) -> Self {
|
||||
Self(widget::Id::new(id))
|
||||
}
|
||||
|
||||
pub fn unique() -> Self {
|
||||
Self(widget::Id::unique())
|
||||
}
|
||||
}
|
||||
|
||||
pub fn focus<Message: 'static>(id: Id) -> Command<Message> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue