diff options
author | 2023-03-03 10:01:49 +0300 | |
---|---|---|
committer | 2023-04-12 03:55:18 +0200 | |
commit | f10e936f00d4b83dcacfdebd2727b1a5cd1add95 (patch) | |
tree | 09f0b4bbfa6446003adebc19c79a1368a89eec6c /examples/qr_code | |
parent | ca828f03f5aab9efacc9d63d4149363333035a0c (diff) | |
download | iced-f10e936f00d4b83dcacfdebd2727b1a5cd1add95.tar.gz iced-f10e936f00d4b83dcacfdebd2727b1a5cd1add95.tar.bz2 iced-f10e936f00d4b83dcacfdebd2727b1a5cd1add95.zip |
Introduce disabled state for `TextInput`
Diffstat (limited to 'examples/qr_code')
-rw-r--r-- | examples/qr_code/src/main.rs | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/examples/qr_code/src/main.rs b/examples/qr_code/src/main.rs index d8041745..0486b068 100644 --- a/examples/qr_code/src/main.rs +++ b/examples/qr_code/src/main.rs @@ -49,13 +49,11 @@ impl Sandbox for QRGenerator { .size(70) .style(Color::from([0.5, 0.5, 0.5])); - let input = text_input( - "Type the data of your QR code here...", - &self.data, - Message::DataChanged, - ) - .size(30) - .padding(15); + let input = + text_input("Type the data of your QR code here...", &self.data) + .on_change(Message::DataChanged) + .size(30) + .padding(15); let mut content = column![title, input] .width(700) |