diff options
author | 2023-03-03 10:01:49 +0300 | |
---|---|---|
committer | 2023-04-12 03:55:18 +0200 | |
commit | f10e936f00d4b83dcacfdebd2727b1a5cd1add95 (patch) | |
tree | 09f0b4bbfa6446003adebc19c79a1368a89eec6c /examples/integration_wgpu | |
parent | ca828f03f5aab9efacc9d63d4149363333035a0c (diff) | |
download | iced-f10e936f00d4b83dcacfdebd2727b1a5cd1add95.tar.gz iced-f10e936f00d4b83dcacfdebd2727b1a5cd1add95.tar.bz2 iced-f10e936f00d4b83dcacfdebd2727b1a5cd1add95.zip |
Introduce disabled state for `TextInput`
Diffstat (limited to 'examples/integration_wgpu')
-rw-r--r-- | examples/integration_wgpu/src/controls.rs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/examples/integration_wgpu/src/controls.rs b/examples/integration_wgpu/src/controls.rs index 533cb6e2..8c42513f 100644 --- a/examples/integration_wgpu/src/controls.rs +++ b/examples/integration_wgpu/src/controls.rs @@ -100,11 +100,10 @@ impl Program for Controls { .size(14) .style(Color::WHITE), ) - .push(text_input( - "Placeholder", - text, - Message::TextChanged, - )), + .push( + text_input("Placeholder", text) + .on_change(Message::TextChanged), + ), ), ) .into() |