summaryrefslogtreecommitdiffstats
path: root/examples/modal
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2023-04-12 04:51:19 +0200
committerLibravatar GitHub <noreply@github.com>2023-04-12 04:51:19 +0200
commitce8e92ca7a4ed0f4fe284c9042f863f7c83ba03a (patch)
treef9be0c6e0d8f9e2af6170f4370677918c4b43a2a /examples/modal
parentca828f03f5aab9efacc9d63d4149363333035a0c (diff)
parent7e7e66586d990788ffd77b17e98357e74252f497 (diff)
downloadiced-ce8e92ca7a4ed0f4fe284c9042f863f7c83ba03a.tar.gz
iced-ce8e92ca7a4ed0f4fe284c9042f863f7c83ba03a.tar.bz2
iced-ce8e92ca7a4ed0f4fe284c9042f863f7c83ba03a.zip
Merge pull request #1744 from JungleTryne/disable-text-input
Add functionality to make `TextInput` disabled
Diffstat (limited to 'examples/modal')
-rw-r--r--examples/modal/src/main.rs14
1 files changed, 6 insertions, 8 deletions
diff --git a/examples/modal/src/main.rs b/examples/modal/src/main.rs
index 54555684..49038475 100644
--- a/examples/modal/src/main.rs
+++ b/examples/modal/src/main.rs
@@ -133,18 +133,16 @@ impl Application for App {
column![
column![
text("Email").size(12),
- text_input(
- "abc@123.com",
- &self.email,
- Message::Email
- )
- .on_submit(Message::Submit)
- .padding(5),
+ text_input("abc@123.com", &self.email,)
+ .on_input(Message::Email)
+ .on_submit(Message::Submit)
+ .padding(5),
]
.spacing(5),
column![
text("Password").size(12),
- text_input("", &self.password, Message::Password)
+ text_input("", &self.password)
+ .on_input(Message::Password)
.on_submit(Message::Submit)
.password()
.padding(5),