summaryrefslogtreecommitdiffstats
path: root/examples/modal
diff options
context:
space:
mode:
authorLibravatar Dan Mishin <danila.mishin.2001@gmail.com>2023-03-03 10:01:49 +0300
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-04-12 03:55:18 +0200
commitf10e936f00d4b83dcacfdebd2727b1a5cd1add95 (patch)
tree09f0b4bbfa6446003adebc19c79a1368a89eec6c /examples/modal
parentca828f03f5aab9efacc9d63d4149363333035a0c (diff)
downloadiced-f10e936f00d4b83dcacfdebd2727b1a5cd1add95.tar.gz
iced-f10e936f00d4b83dcacfdebd2727b1a5cd1add95.tar.bz2
iced-f10e936f00d4b83dcacfdebd2727b1a5cd1add95.zip
Introduce disabled state for `TextInput`
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..1377f054 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_change(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_change(Message::Password)
.on_submit(Message::Submit)
.password()
.padding(5),